Skip to content

Commit 235bc25

Browse files
authored
Merge pull request #3 from catalyst/deprecations-in-composer-package
deps: Update depency to handle deprecations issues with PHP 8.2
2 parents c03279a + 6edfa00 commit 235bc25

25 files changed

Lines changed: 1631 additions & 728 deletions

composer.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
2-
"require": {
3-
"php":">=7.2.0",
4-
"davechild/textstatistics": "1.*"
2+
"require": {
3+
"php": ">=7.2.0",
4+
"davechild/textstatistics": "dev-master"
5+
},
6+
"repositories": [
7+
{
8+
"type": "vcs",
9+
"url": "https://github.com/mdio/Text-Statistics"
510
}
6-
}
11+
]
12+
}

composer.lock

Lines changed: 19 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/autoload.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
// autoload.php @generated by Composer
44

5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
throw new RuntimeException($err);
18+
}
19+
520
require_once __DIR__ . '/composer/autoload_real.php';
621

722
return ComposerAutoloaderInitc9e11eec8cdfc62d8f962d8edcb72405::getLoader();

0 commit comments

Comments
 (0)