diff options
author | Remi Collet <remi@remirepo.net> | 2020-07-06 15:25:00 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-07-06 15:25:00 +0200 |
commit | f207de38d4ec2acdbbc165e191b2839cd33f5884 (patch) | |
tree | 512f0054e9a9f30b1e9ab321b915336e60d7d48a /php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch | |
parent | 19bc8513f2fa37e4f2b5b546b0f67eeef1314ca1 (diff) |
test build for upcoming 5.3.0
raise dependency on PHP 7.1.3
raise dependency on bartlett/php-reflect 4.4
raise dependency on bartlett/php-compatinfo-db 2.0
switch to phpunit8
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch')
-rw-r--r-- | php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch b/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch deleted file mode 100644 index 5b6798e..0000000 --- a/php-bartlett-PHP-CompatInfo-5.2.3-rpm.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist ---- ./bin/phpcompatinfo.json.dist.rpm 2018-11-27 22:03:39.000000000 +0100 -+++ ./bin/phpcompatinfo.json.dist 2018-11-28 08:53:47.258278539 +0100 -@@ -6,6 +6,19 @@ - } - ], - "plugins": [ -+ { -+ "name": "Cache", -+ "class": "Bartlett\\Reflect\\Plugin\\CachePlugin", -+ "options": { -+ "adapter": "DoctrineCacheAdapter", -+ "backend": { -+ "class": "Doctrine\\Common\\Cache\\FilesystemCache", -+ "args": [ -+ "%{HOME}/.cache/php-reflect" -+ ] -+ } -+ } -+ } - ], - "analysers" : [ - ], -diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo ---- ./bin/phpcompatinfo.rpm 2018-11-28 08:53:47.258278539 +0100 -+++ ./bin/phpcompatinfo 2018-11-28 08:55:38.807878501 +0100 -@@ -1,42 +1,22 @@ - #!/usr/bin/env php - <?php - $appName = 'phpCompatInfo'; -+$vendorDir = '/usr/share/php'; - --if (\Phar::running()) { -- $vendorDir = 'phar://' . strtolower($appName) . '.phar/vendor'; --} else { -- $baseDir = dirname(__DIR__); -- $vendorDir = $baseDir . '/vendor'; -- -- if (!file_exists($vendorDir . '/autoload.php')) { -- $vendorDir = dirname(dirname($baseDir)); -- } -- -- if (!getenv("BARTLETTRC")) { -- putenv("BARTLETTRC=" . strtolower($appName) . '.json'); -- } -+require_once $vendorDir . '/Bartlett/CompatInfo/autoload.php'; -+ -+if (!getenv("BARTLETTRC")) { -+ putenv("BARTLETTRC=" . strtolower($appName) . '.json'); - } --$loader = require_once $vendorDir . '/autoload.php'; --$loader->setUseIncludePath(true); - - if (PHP_SAPI !== 'cli') { - return; - } - --$compatInfoDbV1 = class_exists(Bartlett\CompatInfoDb\Environment::class); -- --if (\Phar::running() && $compatInfoDbV1) { -- try { -- Bartlett\CompatInfoDb\Environment::checkRequirements(); -- } catch (\RuntimeException $e) { -- die ($e->getMessage()); -- } --} -- - use Bartlett\Reflect\Environment; - use Bartlett\CompatInfo\Console\Application; - - Environment::setScanDir(); - --$application = new Application($appName, '5.2.3'); -+$application = new Application($appName, '@package_version@'); - $application->run(); |