Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2020-12-30 13:39:16 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2020-12-30 13:39:16 +0300
commit49c994f6d1e98cdb18144d0575691fc0cb5297ef (patch)
tree94637510449a47874115e0b3fed521eeba30161b
parentd487992265ca83348fa361015a06399a9fbd798d (diff)
Fixes towards running rectorphp
-rw-r--r--.github/workflows/coding_standards.yml2
-rw-r--r--.phpcs.xml28
-rw-r--r--composer.json12
-rw-r--r--composer.lock1303
-rw-r--r--mk_linters.mk17
-rw-r--r--rector.php39
-rw-r--r--src/classes/ADORecordSet.php4
-rw-r--r--src/decorators/ActionUrlDecorator.php2
-rw-r--r--src/decorators/RedirectUrlDecorator.php4
9 files changed, 1178 insertions, 233 deletions
diff --git a/.github/workflows/coding_standards.yml b/.github/workflows/coding_standards.yml
index c3c810c4..c8204158 100644
--- a/.github/workflows/coding_standards.yml
+++ b/.github/workflows/coding_standards.yml
@@ -60,7 +60,7 @@ jobs:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php_version }}"
- tools: composer, phpcs, cs2pr
+ tools: composer, phpcs, cs2pr, phive
- name: Cache Composer
uses: "actions/cache@v2.1.1"
diff --git a/.phpcs.xml b/.phpcs.xml
index ad9c46af..da3854a5 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -1,19 +1,33 @@
<?xml version="1.0"?>
<ruleset name="Slim coding standard">
<description>Slim coding standard</description>
- <file>lib</file>
+ <!-- Paths to check -->
+ <file>tests</file>
+ <file>src</file>
- <exclude-pattern>*/lib/_(boilerplate|bootstrap)\.php$</exclude-pattern>
+ <exclude-pattern>*/src/router\.php$</exclude-pattern>
+ <exclude-pattern>*/src/translations/.*$</exclude-pattern>
<!-- display progress -->
<arg value="p"/>
<!-- use colors in output -->
<arg name="colors"/>
<!-- inherit rules from: -->
- <rule ref="PSR2"/>
- <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
+ <!-- inherit rules from: -->
+<rule ref="PSR2">
+ <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
+ <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
+</rule>
+<rule ref="PSR1">
+ <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
+</rule>
- <!-- Paths to check -->
- <file>Slim</file>
- <file>tests</file>
+ <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
+ <rule ref="Generic.Files.LineLength">
+ <properties>
+ <property name="lineLimit" value="170"/>
+ <property name="absoluteLineLimit" value="190"/>
+ </properties>
+ </rule>
</ruleset>
+ \ No newline at end of file
diff --git a/composer.json b/composer.json
index 7dd8ba7a..4c5f655e 100644
--- a/composer.json
+++ b/composer.json
@@ -23,6 +23,8 @@
"slim/flash": "^0.4.0",
"slim/slim": "^3.6",
"slim/twig-view": "~2.5.1",
+ "symfony/polyfill-php74": "^1.20",
+ "symfony/polyfill-php80": "^1.20",
"symfony/yaml": "^5.1",
"twig/twig": "~3"
},
@@ -34,12 +36,12 @@
"filp/whoops": "^2.7",
"friendsofphp/php-cs-fixer": "^2.16",
"kint-php/kint": "~3.3",
- "ocramius/package-versions": "~1.4.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
- "phpstan/phpstan": "^0.12.14",
- "rector/rector-prefixed": "^0.8.29",
+ "phpstan/phpstan": "^0.12.64",
+ "rector/rector-prefixed": "^0.9.3",
+ "simpletest/simpletest": "^1.2",
"staabm/annotate-pull-request-from-checkstyle": "^1.4",
- "vimeo/psalm": "~3.9.3"
+ "vimeo/psalm": "^4"
},
"extra": {
"version": "6.1.3"
@@ -58,6 +60,8 @@
"PHPPgAdmin\\Translations\\": "src/translations"
},
"files": [
+ "src/lib.inc.php",
+ "vendor/symfony/polyfill-php80/bootstrap.php",
"vendor/adodb/adodb-php/drivers/adodb-postgres9.inc.php",
"vendor/adodb/adodb-php/drivers/adodb-pdo.inc.php",
"vendor/adodb/adodb-php/drivers/adodb-pdo_pgsql.inc.php"
diff --git a/composer.lock b/composer.lock
index b2cbd081..73f8d8da 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "7d3f9f022e585bed515ca4aec278db0a",
+ "content-hash": "ba18c544872204dd159b704a92e46fcb",
"packages": [
{
"name": "adodb/adodb-php",
@@ -58,6 +58,10 @@
"library",
"php"
],
+ "support": {
+ "issues": "https://github.com/ADOdb/ADOdb/issues",
+ "source": "https://github.com/ADOdb/ADOdb"
+ },
"time": "2020-06-28T17:52:20+00:00"
},
{
@@ -104,6 +108,10 @@
"router",
"routing"
],
+ "support": {
+ "issues": "https://github.com/nikic/FastRoute/issues",
+ "source": "https://github.com/nikic/FastRoute/tree/master"
+ },
"time": "2018-02-13T20:26:39+00:00"
},
{
@@ -154,6 +162,10 @@
"container",
"dependency injection"
],
+ "support": {
+ "issues": "https://github.com/silexphp/Pimple/issues",
+ "source": "https://github.com/silexphp/Pimple/tree/master"
+ },
"time": "2020-03-03T09:12:48+00:00"
},
{
@@ -203,6 +215,10 @@
"container-interop",
"psr"
],
+ "support": {
+ "issues": "https://github.com/php-fig/container/issues",
+ "source": "https://github.com/php-fig/container/tree/master"
+ },
"time": "2017-02-14T16:28:37+00:00"
},
{
@@ -253,6 +269,9 @@
"request",
"response"
],
+ "support": {
+ "source": "https://github.com/php-fig/http-message/tree/master"
+ },
"time": "2016-08-06T14:39:51+00:00"
},
{
@@ -301,6 +320,10 @@
"provider",
"slim"
],
+ "support": {
+ "issues": "https://github.com/slimphp/Slim-Flash/issues",
+ "source": "https://github.com/slimphp/Slim-Flash/tree/master"
+ },
"time": "2017-10-22T10:35:05+00:00"
},
{
@@ -374,6 +397,10 @@
"micro",
"router"
],
+ "support": {
+ "issues": "https://github.com/slimphp/Slim/issues",
+ "source": "https://github.com/slimphp/Slim/tree/3.x"
+ },
"time": "2019-11-28T17:40:33+00:00"
},
{
@@ -425,6 +452,10 @@
"twig",
"view"
],
+ "support": {
+ "issues": "https://github.com/slimphp/Twig-View/issues",
+ "source": "https://github.com/slimphp/Twig-View/tree/master"
+ },
"time": "2019-11-28T18:03:50+00:00"
},
{
@@ -475,6 +506,23 @@
],
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/deprecation-contracts/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-09-07T11:33:47+00:00"
},
{
@@ -537,6 +585,23 @@
"polyfill",
"portable"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.18.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -600,9 +665,189 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.18.1"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
+ "name": "symfony/polyfill-php74",
+ "version": "v1.20.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php74.git",
+ "reference": "b3a1d2953afb225535abdf966c91dcb3c60786db"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php74/zipball/b3a1d2953afb225535abdf966c91dcb3c60786db",
+ "reference": "b3a1d2953afb225535abdf966c91dcb3c60786db",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.20-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php74\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php74/tree/v1.20.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-10-23T14:02:19+00:00"
+ },
+ {
+ "name": "symfony/polyfill-php80",
+ "version": "v1.20.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php80.git",
+ "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
+ "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.20-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Php80\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-10-23T14:02:19+00:00"
+ },
+ {
"name": "symfony/yaml",
"version": "v5.1.7",
"source": {
@@ -663,6 +908,9 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/yaml/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -739,6 +987,10 @@
"keywords": [
"templating"
],
+ "support": {
+ "issues": "https://github.com/twigphp/Twig/issues",
+ "source": "https://github.com/twigphp/Twig/tree/v3.0.5"
+ },
"funding": [
{
"url": "https://github.com/fabpot",
@@ -829,6 +1081,17 @@
"non-blocking",
"promise"
],
+ "support": {
+ "irc": "irc://irc.freenode.org/amphp",
+ "issues": "https://github.com/amphp/amp/issues",
+ "source": "https://github.com/amphp/amp/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
"time": "2020-07-14T21:47:18+00:00"
},
{
@@ -895,6 +1158,11 @@
"non-blocking",
"stream"
],
+ "support": {
+ "irc": "irc://irc.freenode.org/amphp",
+ "issues": "https://github.com/amphp/byte-stream/issues",
+ "source": "https://github.com/amphp/byte-stream/tree/master"
+ },
"time": "2020-06-29T18:35:05+00:00"
},
{
@@ -954,6 +1222,10 @@
"gherkin",
"parser"
],
+ "support": {
+ "issues": "https://github.com/Behat/Gherkin/issues",
+ "source": "https://github.com/Behat/Gherkin/tree/master"
+ },
"time": "2020-03-17T14:03:26+00:00"
},
{
@@ -1039,6 +1311,10 @@
"functional testing",
"unit testing"
],
+ "support": {
+ "issues": "https://github.com/Codeception/Codeception/issues",
+ "source": "https://github.com/Codeception/Codeception/tree/4.1.8"
+ },
"funding": [
{
"url": "https://opencollective.com/codeception",
@@ -1095,6 +1371,10 @@
"keywords": [
"codeception"
],
+ "support": {
+ "issues": "https://github.com/Codeception/lib-asserts/issues",
+ "source": "https://github.com/Codeception/lib-asserts/tree/1.13.1"
+ },
"time": "2020-08-28T07:49:36+00:00"
},
{
@@ -1151,6 +1431,10 @@
"asserts",
"codeception"
],
+ "support": {
+ "issues": "https://github.com/Codeception/module-asserts/issues",
+ "source": "https://github.com/Codeception/module-asserts/tree/master"
+ },
"time": "2020-08-28T08:06:29+00:00"
},
{
@@ -1195,6 +1479,10 @@
}
],
"description": "PHPUnit classes used by Codeception",
+ "support": {
+ "issues": "https://github.com/Codeception/phpunit-wrapper/issues",
+ "source": "https://github.com/Codeception/phpunit-wrapper/tree/9.0.5"
+ },
"time": "2020-10-11T18:14:42+00:00"
},
{
@@ -1225,9 +1513,81 @@
"MIT"
],
"description": "Flexible Stub wrapper for PHPUnit's Mock Builder",
+ "support": {
+ "issues": "https://github.com/Codeception/Stub/issues",
+ "source": "https://github.com/Codeception/Stub/tree/3.7.0"
+ },
"time": "2020-07-03T15:54:43+00:00"
},
{
+ "name": "composer/package-versions-deprecated",
+ "version": "1.8.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/package-versions-deprecated.git",
+ "reference": "98df7f1b293c0550bd5b1ce6b60b59bdda23aa47"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/98df7f1b293c0550bd5b1ce6b60b59bdda23aa47",
+ "reference": "98df7f1b293c0550bd5b1ce6b60b59bdda23aa47",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.1.0 || ^2.0",
+ "php": "^7"
+ },
+ "replace": {
+ "ocramius/package-versions": "1.2 - 1.8.99"
+ },
+ "require-dev": {
+ "composer/composer": "^1.9.3 || ^2.0@dev",
+ "ext-zip": "^1.13",
+ "phpunit/phpunit": "^6.5 || ^7"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "PackageVersions\\Installer",
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PackageVersions\\": "src/PackageVersions"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Marco Pivetta",
+ "email": "ocramius@gmail.com"
+ },
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be"
+ }
+ ],
+ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
+ "support": {
+ "source": "https://github.com/composer/package-versions-deprecated/tree/1.8.0"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-04-23T11:49:37+00:00"
+ },
+ {
"name": "composer/semver",
"version": "1.7.1",
"source": {
@@ -1286,6 +1646,25 @@
"validation",
"versioning"
],
+ "support": {
+ "irc": "irc://irc.freenode.org/composer",
+ "issues": "https://github.com/composer/semver/issues",
+ "source": "https://github.com/composer/semver/tree/1.7.1"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-09-27T13:13:07+00:00"
},
{
@@ -1330,9 +1709,65 @@
"Xdebug",
"performance"
],
+ "support": {
+ "irc": "irc://irc.freenode.org/composer",
+ "issues": "https://github.com/composer/xdebug-handler/issues",
+ "source": "https://github.com/composer/xdebug-handler/tree/1.4.3"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-08-19T10:27:58+00:00"
},
{
+ "name": "dnoegel/php-xdg-base-dir",
+ "version": "v0.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/dnoegel/php-xdg-base-dir.git",
+ "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd",
+ "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "XdgBaseDir\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "implementation of xdg base directory specification for php",
+ "support": {
+ "issues": "https://github.com/dnoegel/php-xdg-base-dir/issues",
+ "source": "https://github.com/dnoegel/php-xdg-base-dir/tree/v0.1.1"
+ },
+ "time": "2019-12-04T15:06:13+00:00"
+ },
+ {
"name": "doctrine/annotations",
"version": "1.10.4",
"source": {
@@ -1400,6 +1835,10 @@
"docblock",
"parser"
],
+ "support": {
+ "issues": "https://github.com/doctrine/annotations/issues",
+ "source": "https://github.com/doctrine/annotations/tree/1.10.x"
+ },
"time": "2020-08-10T19:35:50+00:00"
},
{
@@ -1456,6 +1895,24 @@
"constructor",
"instantiate"
],
+ "support": {
+ "issues": "https://github.com/doctrine/instantiator/issues",
+ "source": "https://github.com/doctrine/instantiator/tree/1.3.x"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-05-29T17:27:14+00:00"
},
{
@@ -1518,6 +1975,24 @@
"parser",
"php"
],
+ "support": {
+ "issues": "https://github.com/doctrine/lexer/issues",
+ "source": "https://github.com/doctrine/lexer/tree/1.2.1"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-05-25T17:44:05+00:00"
},
{
@@ -1583,6 +2058,16 @@
"normalizer",
"plugin"
],
+ "support": {
+ "issues": "https://github.com/ergebnis/composer-normalize/issues",
+ "source": "https://github.com/ergebnis/composer-normalize"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/localheinz",
+ "type": "github"
+ }
+ ],
"time": "2020-09-22T09:55:49+00:00"
},
{
@@ -1643,6 +2128,16 @@
"json",
"normalizer"
],
+ "support": {
+ "issues": "https://github.com/ergebnis/json-normalizer/issues",
+ "source": "https://github.com/ergebnis/json-normalizer"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/localheinz",
+ "type": "github"
+ }
+ ],
"time": "2020-08-30T12:00:06+00:00"
},
{
@@ -1702,6 +2197,16 @@
"json",
"printer"
],
+ "support": {
+ "issues": "https://github.com/ergebnis/json-printer/issues",
+ "source": "https://github.com/ergebnis/json-printer"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/localheinz",
+ "type": "github"
+ }
+ ],
"time": "2020-08-30T12:17:03+00:00"
},
{
@@ -1758,6 +2263,10 @@
],
"description": "Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.",
"homepage": "https://github.com/ergebnis/php-cs-fixer-config",
+ "support": {
+ "issues": "https://github.com/ergebnis/php-cs-fixer-config/issues",
+ "source": "https://github.com/ergebnis/php-cs-fixer-config"
+ },
"funding": [
{
"url": "https://github.com/localheinz",
@@ -1805,6 +2314,10 @@
}
],
"description": "A more advanced JSONRPC implementation",
+ "support": {
+ "issues": "https://github.com/felixfbecker/php-advanced-json-rpc/issues",
+ "source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/master"
+ },
"time": "2020-03-11T15:21:41+00:00"
},
{
@@ -1852,6 +2365,10 @@
"php",
"server"
],
+ "support": {
+ "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues",
+ "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.4.0"
+ },
"time": "2019-06-23T21:03:50+00:00"
},
{
@@ -1913,6 +2430,10 @@
"throwable",
"whoops"
],
+ "support": {
+ "issues": "https://github.com/filp/whoops/issues",
+ "source": "https://github.com/filp/whoops/tree/2.8.0"
+ },
"time": "2020-10-17T09:00:00+00:00"
},
{
@@ -2004,6 +2525,16 @@
}
],
"description": "A tool to automatically fix PHP code style",
+ "support": {
+ "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
+ "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.16.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/keradus",
+ "type": "github"
+ }
+ ],
"time": "2020-06-27T23:57:46+00:00"
},
{
@@ -2075,6 +2606,10 @@
"uri",
"url"
],
+ "support": {
+ "issues": "https://github.com/guzzle/psr7/issues",
+ "source": "https://github.com/guzzle/psr7/tree/1.7.0"
+ },
"time": "2020-09-30T07:37:11+00:00"
},
{
@@ -2141,6 +2676,10 @@
"json",
"schema"
],
+ "support": {
+ "issues": "https://github.com/justinrainbow/json-schema/issues",
+ "source": "https://github.com/justinrainbow/json-schema/tree/5.2.10"
+ },
"time": "2020-05-27T16:41:55+00:00"
},
{
@@ -2211,6 +2750,10 @@
"kint",
"php"
],
+ "support": {
+ "issues": "https://github.com/kint-php/kint/issues",
+ "source": "https://github.com/kint-php/kint/tree/master"
+ },
"time": "2019-10-17T18:05:24+00:00"
},
{
@@ -2262,6 +2805,15 @@
"unidiff",
"unified diff"
],
+ "support": {
+ "source": "https://github.com/localheinz/diff/tree/main"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-07-06T04:49:32+00:00"
},
{
@@ -2310,6 +2862,16 @@
"object",
"object graph"
],
+ "support": {
+ "issues": "https://github.com/myclabs/DeepCopy/issues",
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.x"
+ },
+ "funding": [
+ {
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-06-29T13:22:24+00:00"
},
{
@@ -2356,6 +2918,11 @@
}
],
"description": "Map nested JSON structures onto PHP classes",
+ "support": {
+ "email": "cweiske@cweiske.de",
+ "issues": "https://github.com/cweiske/jsonmapper/issues",
+ "source": "https://github.com/cweiske/jsonmapper/tree/master"
+ },
"time": "2019-08-15T19:41:25+00:00"
},
{
@@ -2408,57 +2975,11 @@
"parser",
"php"
],
- "time": "2020-09-26T10:30:38+00:00"
- },
- {
- "name": "ocramius/package-versions",
- "version": "1.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/Ocramius/PackageVersions.git",
- "reference": "44af6f3a2e2e04f2af46bcb302ad9600cba41c7d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/44af6f3a2e2e04f2af46bcb302ad9600cba41c7d",
- "reference": "44af6f3a2e2e04f2af46bcb302ad9600cba41c7d",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0.0",
- "php": "^7.1.0"
- },
- "require-dev": {
- "composer/composer": "^1.6.3",
- "doctrine/coding-standard": "^5.0.1",
- "ext-zip": "*",
- "infection/infection": "^0.7.1",
- "phpunit/phpunit": "^7.5.17"
- },
- "type": "composer-plugin",
- "extra": {
- "class": "PackageVersions\\Installer",
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "PackageVersions\\": "src/PackageVersions"
- }
+ "support": {
+ "issues": "https://github.com/nikic/PHP-Parser/issues",
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.2"
},
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com"
- }
- ],
- "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
- "time": "2019-11-15T16:17:10+00:00"
+ "time": "2020-09-26T10:30:38+00:00"
},
{
"name": "openlss/lib-array2xml",
@@ -2507,6 +3028,10 @@
"xml",
"xml conversion"
],
+ "support": {
+ "issues": "https://github.com/nullivex/lib-array2xml/issues",
+ "source": "https://github.com/nullivex/lib-array2xml/tree/master"
+ },
"time": "2019-03-29T20:06:56+00:00"
},
{
@@ -2552,6 +3077,11 @@
"pseudorandom",
"random"
],
+ "support": {
+ "email": "info@paragonie.com",
+ "issues": "https://github.com/paragonie/random_compat/issues",
+ "source": "https://github.com/paragonie/random_compat"
+ },
"time": "2020-10-15T08:29:30+00:00"
},
{
@@ -2608,6 +3138,10 @@
}
],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
+ "support": {
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/master"
+ },
"time": "2020-06-27T14:33:11+00:00"
},
{
@@ -2655,6 +3189,10 @@
}
],
"description": "Library for handling version information and constraints",
+ "support": {
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/master"
+ },
"time": "2020-06-27T14:39:04+00:00"
},
{
@@ -2706,6 +3244,10 @@
"keywords": [
"diff"
],
+ "support": {
+ "issues": "https://github.com/PHP-CS-Fixer/diff/issues",
+ "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1"
+ },
"time": "2020-10-14T08:39:05+00:00"
},
{
@@ -2759,6 +3301,10 @@
],
"description": "This tool check syntax of PHP files about 20x faster than serial check.",
"homepage": "https://github.com/php-parallel-lint/PHP-Parallel-Lint",
+ "support": {
+ "issues": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/issues",
+ "source": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/tree/master"
+ },
"time": "2020-04-04T12:18:32+00:00"
},
{
@@ -2808,6 +3354,10 @@
"reflection",
"static analysis"
],
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
+ },
"time": "2020-06-27T09:03:43+00:00"
},
{
@@ -2860,6 +3410,10 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
+ },
"time": "2020-09-03T19:13:55+00:00"
},
{
@@ -2905,6 +3459,10 @@
}
],
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
+ "support": {
+ "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
+ },
"time": "2020-09-17T18:55:26+00:00"
},
{
@@ -2968,20 +3526,24 @@
"spy",
"stub"
],
+ "support": {
+ "issues": "https://github.com/phpspec/prophecy/issues",
+ "source": "https://github.com/phpspec/prophecy/tree/1.12.1"
+ },
"time": "2020-09-29T09:10:42+00:00"
},
{
"name": "phpstan/phpstan",
- "version": "0.12.50",
+ "version": "0.12.64",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
- "reference": "b8248f9c81265af75d6d969ca3252aaf3e998f3a"
+ "reference": "23eb1cb7ae125f45f1d0e48051bcf67a9a9b08aa"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b8248f9c81265af75d6d969ca3252aaf3e998f3a",
- "reference": "b8248f9c81265af75d6d969ca3252aaf3e998f3a",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/23eb1cb7ae125f45f1d0e48051bcf67a9a9b08aa",
+ "reference": "23eb1cb7ae125f45f1d0e48051bcf67a9a9b08aa",
"shasum": ""
},
"require": {
@@ -3010,6 +3572,10 @@
"MIT"
],
"description": "PHPStan - PHP Static Analysis Tool",
+ "support": {
+ "issues": "https://github.com/phpstan/phpstan/issues",
+ "source": "https://github.com/phpstan/phpstan/tree/0.12.64"
+ },
"funding": [
{
"url": "https://github.com/ondrejmirtes",
@@ -3024,7 +3590,7 @@
"type": "tidelift"
}
],
- "time": "2020-10-16T12:22:23+00:00"
+ "time": "2020-12-21T11:59:02+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -3091,6 +3657,10 @@
"testing",
"xunit"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.0"
+ },
"funding": [
{
"url": "https://github.com/sebastianbergmann",
@@ -3147,6 +3717,16 @@
"filesystem",
"iterator"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
+ "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:57:25+00:00"
},
{
@@ -3200,6 +3780,16 @@
"keywords": [
"process"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
+ "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:58:55+00:00"
},
{
@@ -3249,6 +3839,16 @@
"keywords": [
"template"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
+ "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:03:05+00:00"
},
{
@@ -3298,6 +3898,16 @@
"keywords": [
"timer"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-timer/issues",
+ "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:00:25+00:00"
},
{
@@ -3387,6 +3997,10 @@
"testing",
"xunit"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/phpunit/issues",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.4.1"
+ },
"funding": [
{
"url": "https://phpunit.de/donate.html",
@@ -3443,6 +4057,10 @@
"psr",
"psr-14"
],
+ "support": {
+ "issues": "https://github.com/php-fig/event-dispatcher/issues",
+ "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
+ },
"time": "2019-01-08T18:20:26+00:00"
},
{
@@ -3490,6 +4108,9 @@
"psr",
"psr-3"
],
+ "support": {
+ "source": "https://github.com/php-fig/log/tree/1.1.3"
+ },
"time": "2020-03-23T09:12:05+00:00"
},
{
@@ -3530,46 +4151,43 @@
}
],
"description": "A polyfill for getallheaders.",
+ "support": {
+ "issues": "https://github.com/ralouphie/getallheaders/issues",
+ "source": "https://github.com/ralouphie/getallheaders/tree/develop"
+ },
"time": "2019-03-08T08:55:37+00:00"
},
{
"name": "rector/rector-prefixed",
- "version": "0.8.30",
+ "version": "0.9.3",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector-prefixed.git",
- "reference": "90910ccc8c97daefa16d2501e35843cfcd395919"
+ "reference": "31b49acefe7240cba59f94b01f7ee47325322d8b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/rectorphp/rector-prefixed/zipball/90910ccc8c97daefa16d2501e35843cfcd395919",
- "reference": "90910ccc8c97daefa16d2501e35843cfcd395919",
+ "url": "https://api.github.com/repos/rectorphp/rector-prefixed/zipball/31b49acefe7240cba59f94b01f7ee47325322d8b",
+ "reference": "31b49acefe7240cba59f94b01f7ee47325322d8b",
"shasum": ""
},
"require": {
- "php": "^7.2"
- },
- "conflict": {
- "nikic/php-parser": "<4.7",
- "phpstan/phpstan": "<0.12"
- },
- "replace": {
- "rector/rector": "self.version"
- },
- "require-dev": {
- "doctrine/orm": "^2.7"
+ "php": "^7.3|^8.0",
+ "phpstan/phpstan": "^0.12.64"
},
"bin": [
- "rector",
- "rector.phar"
+ "bin/rector"
],
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
- "description": "Prefixed version of Rector compiled in PHAR",
- "time": "2020-10-18T09:05:00+00:00"
+ "description": "Prefixed scoped version of rector/rector package",
+ "support": {
+ "source": "https://github.com/rectorphp/rector-prefixed/tree/0.9.3"
+ },
+ "time": "2020-12-29T16:24:44+00:00"
},
{
"name": "sebastian/cli-parser",
@@ -3615,6 +4233,16 @@
],
"description": "Library for parsing CLI options",
"homepage": "https://github.com/sebastianbergmann/cli-parser",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
+ "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:08:49+00:00"
},
{
@@ -3661,6 +4289,10 @@
],
"description": "Collection of value objects that represent the PHP code units",
"homepage": "https://github.com/sebastianbergmann/code-unit",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.7"
+ },
"funding": [
{
"url": "https://github.com/sebastianbergmann",
@@ -3712,6 +4344,16 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:30:19+00:00"
},
{
@@ -3776,6 +4418,10 @@
"compare",
"equality"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/comparator/issues",
+ "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.5"
+ },
"funding": [
{
"url": "https://github.com/sebastianbergmann",
@@ -3829,6 +4475,16 @@
],
"description": "Library for calculating the complexity of PHP code units",
"homepage": "https://github.com/sebastianbergmann/complexity",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/complexity/issues",
+ "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:05:03+00:00"
},
{
@@ -3885,6 +4541,16 @@
"unidiff",
"unified diff"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/diff/issues",
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:32:55+00:00"
},
{
@@ -3938,6 +4604,16 @@
"environment",
"hhvm"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/environment/issues",
+ "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:52:38+00:00"
},
{
@@ -4005,6 +4681,16 @@
"export",
"exporter"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/exporter/issues",
+ "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:24:23+00:00"
},
{
@@ -4059,6 +4745,16 @@
"keywords": [
"global state"
],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/global-state/issues",
+ "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:54:06+00:00"
},
{
@@ -4106,6 +4802,16 @@
],
"description": "Library for counting the lines of code in PHP source code",
"homepage": "https://github.com/sebastianbergmann/lines-of-code",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
+ "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:07:27+00:00"
},
{
@@ -4153,6 +4859,16 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:55:06+00:00"
},
{
@@ -4198,6 +4914,16 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:56:16+00:00"
},
{
@@ -4251,6 +4977,16 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T05:17:32+00:00"
},
{
@@ -4296,6 +5032,16 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
+ "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:45:17+00:00"
},
{
@@ -4342,6 +5088,10 @@
],
"description": "Collection of value objects that represent the types of the PHP type system",
"homepage": "https://github.com/sebastianbergmann/type",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/type/issues",
+ "source": "https://github.com/sebastianbergmann/type/tree/2.3.0"
+ },
"funding": [
{
"url": "https://github.com/sebastianbergmann",
@@ -4391,9 +5141,95 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/version/issues",
+ "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
"time": "2020-09-28T06:39:44+00:00"
},
{
+ "name": "simpletest/simpletest",
+ "version": "v1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/simpletest/simpletest.git",
+ "reference": "4fb6006517a1428785a0ea704fbedcc675421ec4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/simpletest/simpletest/zipball/4fb6006517a1428785a0ea704fbedcc675421ec4",
+ "reference": "4fb6006517a1428785a0ea704fbedcc675421ec4",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "."
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-2.0+"
+ ],
+ "authors": [
+ {
+ "name": "Marcus Baker",
+ "email": "marcus@lastcraft.com",
+ "role": "Original project lead"
+ },
+ {
+ "name": "Jason Sweat",
+ "role": "Original developer"
+ },
+ {
+ "name": "Travis Swicegood",
+ "role": "Original developer"
+ },
+ {
+ "name": "Perrick Penet",
+ "role": "Original developer"
+ },
+ {
+ "name": "Edward Z. Yang",
+ "role": "Original developer"
+ },
+ {
+ "name": "Lachlan Donald",
+ "email": "lachlan@ljd.cc"
+ },
+ {
+ "name": "Lars Vierbergen",
+ "email": "vierbergenlars@gmail.com"
+ },
+ {
+ "name": "Jens A. Koch"
+ }
+ ],
+ "description": "Unit testing, mock objects and web testing framework for PHP built around test cases.",
+ "homepage": "http://simpletest.org/",
+ "keywords": [
+ "SimpleTest",
+ "code-coverage",
+ "selenium",
+ "testing",
+ "unit-test"
+ ],
+ "support": {
+ "issues": "https://github.com/simpletest/simpletest/issues",
+ "source": "https://github.com/simpletest/simpletest/tree/master"
+ },
+ "time": "2019-09-17T15:08:22+00:00"
+ },
+ {
"name": "staabm/annotate-pull-request-from-checkstyle",
"version": "1.4.0",
"source": {
@@ -4427,6 +5263,10 @@
"name": "Markus Staab"
}
],
+ "support": {
+ "issues": "https://github.com/staabm/annotate-pull-request-from-checkstyle/issues",
+ "source": "https://github.com/staabm/annotate-pull-request-from-checkstyle/tree/1.4.0"
+ },
"funding": [
{
"url": "https://github.com/staabm",
@@ -4512,6 +5352,9 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/console/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -4579,6 +5422,9 @@
],
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/css-selector/tree/v5.1.4"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -4666,6 +5512,9 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/event-dispatcher/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -4742,6 +5591,23 @@
"interoperability",
"standards"
],
+ "support": {
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.2.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-09-07T11:33:47+00:00"
},
{
@@ -4792,6 +5658,9 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/filesystem/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -4855,6 +5724,9 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/finder/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -4925,6 +5797,9 @@
"configuration",
"options"
],
+ "support": {
+ "source": "https://github.com/symfony/options-resolver/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -5003,6 +5878,23 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.18.1"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -5070,6 +5962,23 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.18.1"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -5133,6 +6042,23 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php70/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -5192,6 +6118,23 @@
"portable",
"shim"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php72/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -5254,72 +6197,23 @@
"portable",
"shim"
],
- "time": "2020-07-14T12:35:20+00:00"
- },
- {
- "name": "symfony/polyfill-php80",
- "version": "v1.18.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981"
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php73/tree/master"
},
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981",
- "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981",
- "shasum": ""
- },
- "require": {
- "php": ">=7.0.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.18-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php80\\": ""
- },
- "files": [
- "bootstrap.php"
- ],
- "classmap": [
- "Resources/stubs"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
+ "funding": [
{
- "name": "Ion Bazan",
- "email": "ion.bazan@gmail.com"
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
},
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
+ "url": "https://github.com/fabpot",
+ "type": "github"
},
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
}
],
- "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ],
"time": "2020-07-14T12:35:20+00:00"
},
{
@@ -5370,6 +6264,9 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/process/tree/5.1"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -5446,6 +6343,23 @@
"interoperability",
"standards"
],
+ "support": {
+ "source": "https://github.com/symfony/service-contracts/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
"time": "2020-09-07T11:33:47+00:00"
},
{
@@ -5496,6 +6410,9 @@
],
"description": "Symfony Stopwatch Component",
"homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/stopwatch/tree/v5.1.4"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -5581,6 +6498,9 @@
"utf-8",
"utf8"
],
+ "support": {
+ "source": "https://github.com/symfony/string/tree/v5.1.7"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -5635,58 +6555,72 @@
}
],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
+ "support": {
+ "issues": "https://github.com/theseer/tokenizer/issues",
+ "source": "https://github.com/theseer/tokenizer/tree/master"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/theseer",
+ "type": "github"
+ }
+ ],
"time": "2020-07-12T23:59:07+00:00"
},
{
"name": "vimeo/psalm",
- "version": "3.9.5",
+ "version": "4.3.2",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
- "reference": "0cfe565d0afbcd31eadcc281b9017b5692911661"
+ "reference": "57b53ff26237074fdf5cbcb034f7da5172be4524"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/vimeo/psalm/zipball/0cfe565d0afbcd31eadcc281b9017b5692911661",
- "reference": "0cfe565d0afbcd31eadcc281b9017b5692911661",
+ "url": "https://api.github.com/repos/vimeo/psalm/zipball/57b53ff26237074fdf5cbcb034f7da5172be4524",
+ "reference": "57b53ff26237074fdf5cbcb034f7da5172be4524",
"shasum": ""
},
"require": {
"amphp/amp": "^2.1",
"amphp/byte-stream": "^1.5",
- "composer/semver": "^1.4",
+ "composer/package-versions-deprecated": "^1.8.0",
+ "composer/semver": "^1.4 || ^2.0 || ^3.0",
"composer/xdebug-handler": "^1.1",
+ "dnoegel/php-xdg-base-dir": "^0.1.1",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
+ "ext-mbstring": "*",
"ext-simplexml": "*",
"ext-tokenizer": "*",
"felixfbecker/advanced-json-rpc": "^3.0.3",
"felixfbecker/language-server-protocol": "^1.4",
- "netresearch/jsonmapper": "^1.0",
- "nikic/php-parser": "^4.3",
- "ocramius/package-versions": "^1.2",
+ "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0",
+ "nikic/php-parser": "^4.10.1",
"openlss/lib-array2xml": "^1.0",
- "php": "^7.1.3|^8",
+ "php": "^7.1|^8",
"sebastian/diff": "^3.0 || ^4.0",
"symfony/console": "^3.4.17 || ^4.1.6 || ^5.0",
- "webmozart/glob": "^4.1",
"webmozart/path-util": "^2.3"
},
"provide": {
"psalm/psalm": "self.version"
},
"require-dev": {
+ "amphp/amp": "^2.4.2",
"bamarni/composer-bin-plugin": "^1.2",
- "brianium/paratest": "^4.0.0",
+ "brianium/paratest": "^4.0||^6.0",
"ext-curl": "*",
- "phpmyadmin/sql-parser": "5.1.0",
+ "phpdocumentor/reflection-docblock": "^5",
+ "phpmyadmin/sql-parser": "5.1.0||dev-master",
"phpspec/prophecy": ">=1.9.0",
- "phpunit/phpunit": "^7.5.16 || ^8.5",
- "psalm/plugin-phpunit": "^0.9",
- "slevomat/coding-standard": "^5.0",
+ "phpunit/phpunit": "^9.0",
+ "psalm/plugin-phpunit": "^0.13",
+ "slevomat/coding-standard": "^6.3.11",
"squizlabs/php_codesniffer": "^3.5",
- "symfony/process": "^4.3"
+ "symfony/process": "^4.3",
+ "weirdan/prophecy-shim": "^1.0 || ^2.0"
},
"suggest": {
"ext-igbinary": "^2.0.5"
@@ -5701,15 +6635,15 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.x-dev",
+ "dev-master": "4.x-dev",
+ "dev-3.x": "3.x-dev",
"dev-2.x": "2.x-dev",
"dev-1.x": "1.x-dev"
}
},
"autoload": {
"psr-4": {
- "Psalm\\Plugin\\": "src/Psalm/Plugin",
- "Psalm\\": "src/Psalm"
+ "Psalm\\": "src/Psalm/"
},
"files": [
"src/functions.php",
@@ -5731,7 +6665,11 @@
"inspection",
"php"
],
- "time": "2020-03-09T22:59:56+00:00"
+ "support": {
+ "issues": "https://github.com/vimeo/psalm/issues",
+ "source": "https://github.com/vimeo/psalm/tree/4.3.2"
+ },
+ "time": "2020-12-29T17:37:09+00:00"
},
{
"name": "webmozart/assert",
@@ -5780,54 +6718,11 @@
"check",
"validate"
],
- "time": "2020-07-08T17:02:28+00:00"
- },
- {
- "name": "webmozart/glob",
- "version": "4.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/glob.git",
- "reference": "3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/glob/zipball/3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe",
- "reference": "3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3|^7.0",
- "webmozart/path-util": "^2.2"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1",
- "symfony/filesystem": "^2.5"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.1-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Glob\\": "src/"
- }
+ "support": {
+ "issues": "https://github.com/webmozart/assert/issues",
+ "source": "https://github.com/webmozart/assert/tree/master"
},
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "A PHP implementation of Ant's glob.",
- "time": "2015-12-29T11:14:33+00:00"
+ "time": "2020-07-08T17:02:28+00:00"
},
{
"name": "webmozart/path-util",
@@ -5873,13 +6768,17 @@
}
],
"description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.",
+ "support": {
+ "issues": "https://github.com/webmozart/path-util/issues",
+ "source": "https://github.com/webmozart/path-util/tree/2.3.0"
+ },
"time": "2015-12-17T08:42:14+00:00"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
- "prefer-stable": true,
+ "prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=7.2",
@@ -5889,5 +6788,5 @@
"ext-xml": "*"
},
"platform-dev": [],
- "plugin-api-version": "1.1.0"
+ "plugin-api-version": "2.0.0"
}
diff --git a/mk_linters.mk b/mk_linters.mk
index 3e9abfe0..69f9d119 100644
--- a/mk_linters.mk
+++ b/mk_linters.mk
@@ -40,7 +40,7 @@ abort_suggesting_composer:
fi
check_executable_or_exit_with_phive:
- @if [ ! -f "$(executable)" ]; then \
+ @if [ ! -e "$(executable)" ]; then \
echo -e "$(GREEN)$(package_name)$(WHITE) $(RED)NOT FOUND$(WHITE) on $(CYAN)$(executable)$(WHITE). " ;\
echo -e "Install it with $(GREEN)phive install $(package_name)$(WHITE)" ;\
echo ;\
@@ -62,16 +62,17 @@ update_baselines:
.PHONY:abort_suggesting_composer check_executable_or_exit_with_phive update_baselines
phpmd: package_name:=phpmd
-phpmd: executable:= $(shell command -v phpmd 2> /dev/null)
+phpmd: executable:=tools/phpmd
phpmd:
@${MAKE} check_executable_or_exit_with_phive executable=$(executable) package_name=$(package_name) --no-print-directory
- @phpmd src text .phpmd.xml --exclude=src/help/*,src/translations/*
+ @$(executable) src text .phpmd.xml --exclude=src/help/*,src/translations/*
+
phpmd_checkstyle:
@${MAKE} phpmd > temp/phpmd.report.json ;\
echo -e "$(GREEN)Finished PHPMD$(WHITE): waiting 1s"
@sleep 1 ;\
- php tools/phpmd_checkstyle.php ;\
+ php tools/phpmd_checkstyle ;\
echo -e "$(GREEN)Formatted PHPMD$(WHITE): as checkStyle"
cat temp/phpmd.checkstyle.xml | vendor/bin/cs2pr
@@ -102,7 +103,7 @@ ifeq (,$(reportformat))
endif
@${MAKE} check_executable_or_exit_with_phive executable=$(executable) package_name=$(package_name) --no-print-directory
@mkdir -p .build/phpcs && touch .build/phpcs/php-cs.cache ;\
- phpcs --standard=.phpcs.xml --parallel=2 --cache=.build/phpcs/php-cs.cache --report=$(reportformat) src/*
+ $(executable) --standard=.phpcs.xml --parallel=2 --cache=.build/phpcs/php-cs.cache --report=$(reportformat) src/*
@@ -139,6 +140,12 @@ phpstan_checkstyle:
cat temp/phpstan.checkstyle.xml | vendor/bin/cs2pr ;\
echo ""
+
+rector:
+ $(eval executable:=vendor/bin/rector)
+ $(eval package_name:=rector/rector)
+ @${MAKE} abort_suggesting_composer executable=$(executable) package_name=$(package_name) --no-print-directory
+ @$(executable) process --ansi --dry-run
lint:
$(eval executable:=vendor/bin/parallel-lint )
$(eval package_name:=php-parallel-lint/php-parallel-lint )
diff --git a/rector.php b/rector.php
index b8f25bcb..1a9c94b3 100644
--- a/rector.php
+++ b/rector.php
@@ -2,7 +2,13 @@
declare(strict_types=1);
+use PhpParser\Node\Scalar\EncapsedStringPart;
+use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
+use Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector;
+use Rector\CodingStyle\Rector\Property\AddFalseDefaultToBoolPropertyRector;
+use Rector\CodingStyle\Rector\Switch_\BinarySwitchToIfElseRector;
use Rector\Core\Configuration\Option;
+use Rector\Core\ValueObject\PhpVersion;
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
@@ -13,6 +19,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
$parameters->set(Option::SETS, [
+ SetList::CODING_STYLE,
SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION,
SetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL,
SetList::CODE_QUALITY,
@@ -22,12 +29,19 @@ return static function (ContainerConfigurator $containerConfigurator): void {
SetList::PHP_70,
SetList::PHP_71,
SetList::PHP_72,
- SetList::PHPSTAN,
- SetList::PHPUNIT_CODE_QUALITY,
- SetList::SOLID,
+ SetList::PHPUNIT_CODE_QUALITY,
+
]);
+//
+
$parameters->set(Option::SKIP, [
- Rector\SOLID\Rector\Property\AddFalseDefaultToBoolPropertyRector::class => [
+ VersionCompareFuncCallToConstantRector::class=>[ __DIR__ . '/src',],
+
+ BinarySwitchToIfElseRector::class=>[ __DIR__ . '/src',],
+ StaticCallOnNonStaticToInstanceCallRector::class=>[
+ __DIR__ . '/src',
+ ],
+ AddFalseDefaultToBoolPropertyRector::class => [
// single file
__DIR__ . '/src/classes/Connection.php',
// or directory
@@ -35,14 +49,21 @@ return static function (ContainerConfigurator $containerConfigurator): void {
]
]);
- $parameters->set(Option::PHP_VERSION_FEATURES, '7.2');
+ $parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, __DIR__ . '/phpstan.neon');
+ $parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_72);
$parameters->set(Option::ENABLE_CACHE, true);
$parameters->set(Option::CACHE_DIR, __DIR__ . '/.build/rector');
$parameters->set(Option::PATHS, [
- __DIR__ . '/src',
+ __DIR__ . '/src/classes',
+ __DIR__ . '/src/controllers',
+ //__DIR__ . '/src/database',
+ //__DIR__ . '/src/decorators',
+ //__DIR__ . '/src/middleware',
+ //__DIR__ . '/src/traits',
//__DIR__ . '/tests'
]);
- $parameters->set(Option::EXCLUDE_RECTORS, [
- StaticCallOnNonStaticToInstanceCallRector::class,
- ]);
+
+ // register single rule
+ $services = $containerConfigurator->services();
+ $services->set(EncapsedStringsToSprintfRector::class);
}; \ No newline at end of file
diff --git a/src/classes/ADORecordSet.php b/src/classes/ADORecordSet.php
index caee69f0..c18a02ff 100644
--- a/src/classes/ADORecordSet.php
+++ b/src/classes/ADORecordSet.php
@@ -5,11 +5,11 @@
*/
namespace PHPPgAdmin;
-
+use ADORecordSet as ADODBRecordsetClass;
/**
* Extends ADORecordSet to let correct inference on PHPDoc params.
*/
-class ADORecordSet extends \ADORecordSet implements \Countable
+class ADORecordSet extends ADODBRecordsetClass implements \Countable
{
/**
* Returns the recordCount.
diff --git a/src/decorators/ActionUrlDecorator.php b/src/decorators/ActionUrlDecorator.php
index 28f56efe..3ffed5fc 100644
--- a/src/decorators/ActionUrlDecorator.php
+++ b/src/decorators/ActionUrlDecorator.php
@@ -41,6 +41,6 @@ class ActionUrlDecorator extends Decorator
}
}
- return \containerInstance()->subFolder . '/src/views/' . \str_replace('.php', '', $url);
+ return /*\containerInstance()->subFolder . '/*/'/src/views/' . \str_replace('.php', '', $url);
}
}
diff --git a/src/decorators/RedirectUrlDecorator.php b/src/decorators/RedirectUrlDecorator.php
index beff430c..cfb2570d 100644
--- a/src/decorators/RedirectUrlDecorator.php
+++ b/src/decorators/RedirectUrlDecorator.php
@@ -36,7 +36,7 @@ class RedirectUrlDecorator extends Decorator
$varvalue = Decorator::value_url($value, $fields);
if ('subject' === $varname) {
- $url = '/' . \str_replace('redirect?', 'redirect/' . $varvalue . '?', $url);
+ $url = \str_replace('redirect?', 'redirect/' . $varvalue . '?', $url);
} else {
$url .= $sep . $varname . '=' . $varvalue;
}
@@ -46,7 +46,7 @@ class RedirectUrlDecorator extends Decorator
}
if ('' !== containerInstance()->subFolder && (0 === \mb_strpos($url, '/')) && (false === \mb_strpos($url, \containerInstance()->subFolder))) {
- $url = \str_replace('//', '/', \containerInstance()->subFolder . '/' . $url);
+ // $url = \str_replace('//', '/', \containerInstance()->subFolder . '/' . $url);
}
return \str_replace('.php', '', $url);