Skip to content

Commit 19cc4a6

Browse files
committed
fix: remove 5.2 compatibility causing autoloader to fail
1 parent 169cefa commit 19cc4a6

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

composer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
"issues": "https://github.com/Codeinwp/visualizer/issues",
2121
"source": "https://github.com/Codeinwp/visualizer"
2222
},
23+
"config": {
24+
"platform": {
25+
"php": "5.6"
26+
}
27+
},
2328
"require": {
2429
"codeinwp/themeisle-sdk": "master",
25-
"xrstf/composer-php52": "^1.0.20",
2630
"phpoffice/phpspreadsheet": "1.8.2",
2731
"neitanod/forceutf8": "~2.0"
2832
},
@@ -33,16 +37,5 @@
3337
]
3438
},
3539
"minimum-stability": "dev",
36-
"prefer-stable": true,
37-
"scripts": {
38-
"post-install-cmd": [
39-
"xrstf\\Composer52\\Generator::onPostInstallCmd"
40-
],
41-
"post-update-cmd": [
42-
"xrstf\\Composer52\\Generator::onPostInstallCmd"
43-
],
44-
"post-autoload-dump": [
45-
"xrstf\\Composer52\\Generator::onPostInstallCmd"
46-
]
47-
}
40+
"prefer-stable": true
4841
}

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function visualizer_launch() {
125125

126126
$plugin->setModule( Visualizer_Module_AMP::NAME );
127127

128-
$vendor_file = VISUALIZER_ABSPATH . '/vendor/autoload_52.php';
128+
$vendor_file = VISUALIZER_ABSPATH . '/vendor/autoload.php';
129129
if ( is_readable( $vendor_file ) ) {
130130
include_once( $vendor_file );
131131
}

0 commit comments

Comments
 (0)