Skip to content

Commit 19794de

Browse files
iMattProCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5cae87a commit 19794de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/QuickInstall/Sandbox/DoctorService.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function checks(): array
4040
filter_var(ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN),
4141
filter_var(ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN) ? 'allow_url_fopen enabled' : 'enable allow_url_fopen=On in php.ini'
4242
),
43-
$this->check('Process execution', function_exists('proc_open'), function_exists('proc_open') ? 'available' : 'proc_open is disabled'),
44-
$this->check('Network sockets', function_exists('fsockopen'), function_exists('fsockopen') ? 'available' : 'fsockopen is disabled'),
43+
$this->check('Process execution', is_callable('proc_open'), is_callable('proc_open') ? 'available' : 'proc_open is disabled'),
44+
$this->check('Network sockets', is_callable('fsockopen'), is_callable('fsockopen') ? 'available' : 'fsockopen is disabled'),
4545
$this->check('Project writable', $projectWritable, $projectWritable ? $this->project->rootPath() : 'QuickInstall project directory is not writable'),
4646
];
4747

0 commit comments

Comments
 (0)