Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sodium
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
sodium
Merge requests
!14
Remove duplicate php requirement check
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove duplicate php requirement check
issue/sodium-3477511:php_requirement
into
3.0.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Patrick Kenny
requested to merge
issue/sodium-3477511:php_requirement
into
3.0.x
8 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
3.0.x
version 1
23387852
8 months ago
3.0.x (base)
and
latest version
latest version
23387852
1 commit,
8 months ago
version 1
23387852
1 commit,
8 months ago
1 file
+
2
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
sodium.install
+
2
−
10
Options
@@ -10,18 +10,10 @@
*
* Verifies that module requirements are met.
*/
function
sodium_requirements
(
$phase
)
{
function
sodium_requirements
(
string
$phase
):
array
{
$requirements
=
[];
if
(
$phase
==
'install'
)
{
// Verify that the PHP version is at least 7.2.
if
(
PHP_VERSION_ID
<
70200
)
{
$requirements
[
'php_version'
]
=
[
'description'
=>
t
(
'Sodium requires PHP version 7.2 or greater.'
),
'severity'
=>
REQUIREMENT_ERROR
,
];
}
if
(
$phase
===
'install'
)
{
// Verify that the Halite PHP library is available.
if
(
!
class_exists
(
'\ParagonIE\Halite\Halite'
))
{
$requirements
[
'halite_library'
]
=
[
Loading