Old array syntax in requirement checker (could be run in PHP prior to 5.4) (#201)
This commit is contained in:
parent
87ef329035
commit
cb46def3bf
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
|
|
||||||
if (!isset($frameworkPath)) {
|
if (!isset($frameworkPath)) {
|
||||||
$searchPaths = [
|
$searchPaths = array(
|
||||||
dirname(__FILE__) . '/vendor/yiisoft/yii2',
|
dirname(__FILE__) . '/vendor/yiisoft/yii2',
|
||||||
dirname(__FILE__) . '/../vendor/yiisoft/yii2',
|
dirname(__FILE__) . '/../vendor/yiisoft/yii2',
|
||||||
];
|
);
|
||||||
foreach($searchPaths as $path) {
|
foreach($searchPaths as $path) {
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
$frameworkPath = $path;
|
$frameworkPath = $path;
|
||||||
|
Loading…
Reference in New Issue
Block a user