Skip to content

Commit 42c0b70

Browse files
author
Roman Syroeshko
committed
Replaced "phpversion()" function call with "PHP_VERSION" constant usage.
1 parent fbfde2e commit 42c0b70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
include_once 'Sample_Header.php';
33

44
use PhpOffice\PhpWord\Settings;
5+
56
$requirements = array(
6-
'php' => array('PHP 5.3.0', version_compare(phpversion(), '5.3.0', '>=')),
7+
'php' => array('PHP 5.3.3', version_compare(PHP_VERSION, '5.3.3', '>=')),
78
'xml' => array('PHP extension XML', extension_loaded('xml')),
89
'temp' => array('Temp folder "<code>' . Settings::getTempDir() . '</code>" is writable', is_writable(Settings::getTempDir())),
910
'zip' => array('PHP extension ZipArchive (optional)', extension_loaded('zip')),

0 commit comments

Comments
 (0)