From 511eccfc1e7379c767b8d90ead2517faa962139a Mon Sep 17 00:00:00 2001 From: "Buster \"Silver Eagle\" Neece" Date: Mon, 31 Aug 2020 03:28:40 -0500 Subject: [PATCH] Fixes to PHPStan and minor typo fixes. --- composer.json | 7 +- composer.lock | 478 ++++++++++++------ phpstan.neon | 5 +- src/AppFactory.php | 2 +- src/Assets.php | 2 +- src/Console/Command/ReprocessMediaCommand.php | 8 +- 6 files changed, 323 insertions(+), 179 deletions(-) diff --git a/composer.json b/composer.json index e13d097b2..2b1ef621f 100644 --- a/composer.json +++ b/composer.json @@ -81,7 +81,7 @@ "symfony/validator": "^5", "voku/portable-utf8": "^5.4", "wikimedia/composer-merge-plugin": "^1.4", - "zircote/swagger-php": "^3.0.4" + "zircote/swagger-php": "3.0.4" }, "require-dev": { "codeception/codeception": "^4.0", @@ -92,10 +92,11 @@ "codeception/module-rest": "^1.0", "filp/whoops": "^2", "flow/jsonpath": "^0.5", + "kint-php/kint": "^3.3", "mockery/mockery": "^1.0", + "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.12", "phpstan/phpstan-doctrine": "^0.12", - "phpstan/phpstan-strict-rules": "^0.12", "phpunit/php-timer": "^5.0", "phpunit/phpunit": "^9.2", "roave/security-advisories": "dev-master", @@ -118,7 +119,7 @@ "@codeception-no-coverage" ], "phplint": "phplint", - "phpstan": "phpstan analyze", + "phpstan": "phpstan analyze --memory-limit=512M", "codeception": "codecept run --no-interaction --coverage --coverage-xml --fail-fast", "codeception-no-coverage": "codecept run --no-interaction", "ci-import-locales": [ diff --git a/composer.lock b/composer.lock index 0cab3d9d8..8b66f2071 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cc425de3a5ca2a525916b695de5c07be", + "content-hash": "cfd725641e673f349f383d4455803f72", "packages": [ { "name": "aws/aws-sdk-php", - "version": "3.150.3", + "version": "3.151.2", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "4c4e1cef09a6b510eae7a871ec394d124b5005fe" + "reference": "7191394eb44edee26db739207c432e408cd6a26f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4c4e1cef09a6b510eae7a871ec394d124b5005fe", - "reference": "4c4e1cef09a6b510eae7a871ec394d124b5005fe", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/7191394eb44edee26db739207c432e408cd6a26f", + "reference": "7191394eb44edee26db739207c432e408cd6a26f", "shasum": "" }, "require": { @@ -89,7 +89,7 @@ "s3", "sdk" ], - "time": "2020-08-24T18:17:53+00:00" + "time": "2020-08-28T18:11:11+00:00" }, { "name": "azuracast/azuraforms", @@ -2890,38 +2890,38 @@ }, { "name": "laminas/laminas-config", - "version": "3.3.0", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-config.git", - "reference": "b8fe057f55e69a0e7a2e4ced79218a43f58606a8" + "reference": "0bce6f5abab41dc673196741883b19018a2b5994" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-config/zipball/b8fe057f55e69a0e7a2e4ced79218a43f58606a8", - "reference": "b8fe057f55e69a0e7a2e4ced79218a43f58606a8", + "url": "https://api.github.com/repos/laminas/laminas-config/zipball/0bce6f5abab41dc673196741883b19018a2b5994", + "reference": "0bce6f5abab41dc673196741883b19018a2b5994", "shasum": "" }, "require": { "ext-json": "*", "laminas/laminas-stdlib": "^2.7.7 || ^3.1", "laminas/laminas-zendframework-bridge": "^1.0", - "php": "^5.6 || ^7.0", + "php": "^7.3 || ^8.0", "psr/container": "^1.0" }, "conflict": { "container-interop/container-interop": "<1.2.0" }, "replace": { - "zendframework/zend-config": "self.version" + "zendframework/zend-config": "^3.3.0" }, "require-dev": { "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-filter": "^2.7.2", - "laminas/laminas-i18n": "^2.7.4", - "laminas/laminas-servicemanager": "^2.7.8 || ^3.3", + "laminas/laminas-i18n": "^2.10.3", + "laminas/laminas-servicemanager": "^3.4.1", "malukenho/docheader": "^0.1.6", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2" + "phpunit/phpunit": "^8.5.8" }, "suggest": { "laminas/laminas-filter": "^2.7.2; install if you want to use the Filter processor", @@ -2931,8 +2931,8 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3.x-dev", - "dev-develop": "3.4.x-dev" + "dev-master": "3.4.x-dev", + "dev-develop": "3.5.x-dev" } }, "autoload": { @@ -2950,45 +2950,51 @@ "config", "laminas" ], - "time": "2019-12-31T16:30:11+00:00" + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2020-08-25T11:56:37+00:00" }, { "name": "laminas/laminas-eventmanager", - "version": "3.2.1", + "version": "3.3.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-eventmanager.git", - "reference": "ce4dc0bdf3b14b7f9815775af9dfee80a63b4748" + "reference": "1940ccf30e058b2fd66f5a9d696f1b5e0027b082" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/ce4dc0bdf3b14b7f9815775af9dfee80a63b4748", - "reference": "ce4dc0bdf3b14b7f9815775af9dfee80a63b4748", + "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/1940ccf30e058b2fd66f5a9d696f1b5e0027b082", + "reference": "1940ccf30e058b2fd66f5a9d696f1b5e0027b082", "shasum": "" }, "require": { "laminas/laminas-zendframework-bridge": "^1.0", - "php": "^5.6 || ^7.0" + "php": "^7.3 || ^8.0" }, "replace": { - "zendframework/zend-eventmanager": "self.version" + "zendframework/zend-eventmanager": "^3.2.1" }, "require-dev": { - "athletic/athletic": "^0.1", - "container-interop/container-interop": "^1.1.0", + "container-interop/container-interop": "^1.1", "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-stdlib": "^2.7.3 || ^3.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2" + "phpbench/phpbench": "^0.17.1", + "phpunit/phpunit": "^8.5.8" }, "suggest": { - "container-interop/container-interop": "^1.1.0, to use the lazy listeners feature", + "container-interop/container-interop": "^1.1, to use the lazy listeners feature", "laminas/laminas-stdlib": "^2.7.3 || ^3.0, to use the FilterChain feature" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev", - "dev-develop": "3.3-dev" + "dev-master": "3.3.x-dev", + "dev-develop": "3.4.x-dev" } }, "autoload": { @@ -3008,39 +3014,45 @@ "events", "laminas" ], - "time": "2019-12-31T16:44:52+00:00" + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2020-08-25T11:10:44+00:00" }, { "name": "laminas/laminas-stdlib", - "version": "3.2.1", + "version": "3.3.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-stdlib.git", - "reference": "2b18347625a2f06a1a485acfbc870f699dbe51c6" + "reference": "b9d84eaa39fde733356ea948cdef36c631f202b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/2b18347625a2f06a1a485acfbc870f699dbe51c6", - "reference": "2b18347625a2f06a1a485acfbc870f699dbe51c6", + "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/b9d84eaa39fde733356ea948cdef36c631f202b6", + "reference": "b9d84eaa39fde733356ea948cdef36c631f202b6", "shasum": "" }, "require": { "laminas/laminas-zendframework-bridge": "^1.0", - "php": "^5.6 || ^7.0" + "php": "^7.3 || ^8.0" }, "replace": { - "zendframework/zend-stdlib": "self.version" + "zendframework/zend-stdlib": "^3.2.1" }, "require-dev": { "laminas/laminas-coding-standard": "~1.0.0", - "phpbench/phpbench": "^0.13", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2" + "phpbench/phpbench": "^0.17.1", + "phpunit/phpunit": "^9.3.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2.x-dev", - "dev-develop": "3.3.x-dev" + "dev-master": "3.3.x-dev", + "dev-develop": "3.4.x-dev" } }, "autoload": { @@ -3058,7 +3070,13 @@ "laminas", "stdlib" ], - "time": "2019-12-31T17:51:15+00:00" + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2020-08-25T09:08:16+00:00" }, { "name": "laminas/laminas-zendframework-bridge", @@ -8049,30 +8067,31 @@ }, { "name": "webimpress/safe-writer", - "version": "2.0.1", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/webimpress/safe-writer.git", - "reference": "d6e879960febb307c112538997316371f1e95b12" + "reference": "5cfafdec5873c389036f14bf832a5efc9390dcdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webimpress/safe-writer/zipball/d6e879960febb307c112538997316371f1e95b12", - "reference": "d6e879960febb307c112538997316371f1e95b12", + "url": "https://api.github.com/repos/webimpress/safe-writer/zipball/5cfafdec5873c389036f14bf832a5efc9390dcdd", + "reference": "5cfafdec5873c389036f14bf832a5efc9390dcdd", "shasum": "" }, "require": { - "php": "^7.2" + "php": "^7.2 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^8.5.2 || ^9.0.1", - "webimpress/coding-standard": "^1.1.4" + "phpunit/phpunit": "^8.5.8 || ^9.3.7", + "vimeo/psalm": "^3.14.2", + "webimpress/coding-standard": "^1.1.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev", - "dev-develop": "2.1.x-dev", + "dev-master": "2.1.x-dev", + "dev-develop": "2.2.x-dev", "dev-release-1.0": "1.0.x-dev" } }, @@ -8099,7 +8118,7 @@ "type": "github" } ], - "time": "2020-03-21T15:49:08+00:00" + "time": "2020-08-25T07:21:11+00:00" }, { "name": "wikimedia/composer-merge-plugin", @@ -8152,28 +8171,28 @@ }, { "name": "zircote/swagger-php", - "version": "3.0.5", + "version": "3.0.4", "source": { "type": "git", "url": "https://github.com/zircote/swagger-php.git", - "reference": "7f4b9e09c9e96a4c7dd57b0a4ddd5b45f1e261e1" + "reference": "fa47d62c22c95272625624fbf8109fa46ffac43b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zircote/swagger-php/zipball/7f4b9e09c9e96a4c7dd57b0a4ddd5b45f1e261e1", - "reference": "7f4b9e09c9e96a4c7dd57b0a4ddd5b45f1e261e1", + "url": "https://api.github.com/repos/zircote/swagger-php/zipball/fa47d62c22c95272625624fbf8109fa46ffac43b", + "reference": "fa47d62c22c95272625624fbf8109fa46ffac43b", "shasum": "" }, "require": { "doctrine/annotations": "*", - "ext-json": "*", "php": ">=7.2", "symfony/finder": ">=2.2", "symfony/yaml": ">=3.3" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", - "phpunit/phpunit": ">=8" + "phpunit/phpunit": ">=8", + "squizlabs/php_codesniffer": ">=3.3", + "zendframework/zend-form": "<2.8" }, "bin": [ "bin/openapi" @@ -8211,7 +8230,7 @@ "rest", "service discovery" ], - "time": "2020-08-24T04:51:22+00:00" + "time": "2020-05-07T09:10:49+00:00" } ], "packages-dev": [ @@ -8276,16 +8295,16 @@ }, { "name": "codeception/codeception", - "version": "4.1.6", + "version": "4.1.7", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9" + "reference": "220ad18d3c192137d9dc2d0dd8d69a0d82083a26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9", - "reference": "5515b6a6c6f1e1c909aaff2e5f3a15c177dfd1a9", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/220ad18d3c192137d9dc2d0dd8d69a0d82083a26", + "reference": "220ad18d3c192137d9dc2d0dd8d69a0d82083a26", "shasum": "" }, "require": { @@ -8363,24 +8382,25 @@ "type": "open_collective" } ], - "time": "2020-06-07T16:31:51+00:00" + "time": "2020-08-28T06:37:06+00:00" }, { "name": "codeception/lib-asserts", - "version": "1.12.0", + "version": "1.13.1", "source": { "type": "git", "url": "https://github.com/Codeception/lib-asserts.git", - "reference": "acd0dc8b394595a74b58dcc889f72569ff7d8e71" + "reference": "263ef0b7eff80643e82f4cf55351eca553a09a10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/lib-asserts/zipball/acd0dc8b394595a74b58dcc889f72569ff7d8e71", - "reference": "acd0dc8b394595a74b58dcc889f72569ff7d8e71", + "url": "https://api.github.com/repos/Codeception/lib-asserts/zipball/263ef0b7eff80643e82f4cf55351eca553a09a10", + "reference": "263ef0b7eff80643e82f4cf55351eca553a09a10", "shasum": "" }, "require": { "codeception/phpunit-wrapper": ">6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.3 | ^9.0", + "ext-dom": "*", "php": ">=5.6.0 <8.0" }, "type": "library", @@ -8401,14 +8421,18 @@ }, { "name": "Gintautas Miselis" + }, + { + "name": "Gustavo Nieves", + "homepage": "https://medium.com/@ganieves" } ], "description": "Assertion methods used by Codeception core and Asserts module", - "homepage": "http://codeception.com/", + "homepage": "https://codeception.com/", "keywords": [ "codeception" ], - "time": "2020-04-17T18:20:46+00:00" + "time": "2020-08-28T07:49:36+00:00" }, { "name": "codeception/lib-innerbrowser", @@ -8468,21 +8492,21 @@ }, { "name": "codeception/module-asserts", - "version": "1.2.1", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/Codeception/module-asserts.git", - "reference": "79f13d05b63f2fceba4d0e78044bab668c9b2a6b" + "reference": "32e5be519faaeb60ed3692383dcd1b3390ec2667" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/module-asserts/zipball/79f13d05b63f2fceba4d0e78044bab668c9b2a6b", - "reference": "79f13d05b63f2fceba4d0e78044bab668c9b2a6b", + "url": "https://api.github.com/repos/Codeception/module-asserts/zipball/32e5be519faaeb60ed3692383dcd1b3390ec2667", + "reference": "32e5be519faaeb60ed3692383dcd1b3390ec2667", "shasum": "" }, "require": { "codeception/codeception": "*@dev", - "codeception/lib-asserts": "^1.12.0", + "codeception/lib-asserts": "^1.13.1", "php": ">=5.6.0 <8.0" }, "conflict": { @@ -8507,16 +8531,20 @@ }, { "name": "Gintautas Miselis" + }, + { + "name": "Gustavo Nieves", + "homepage": "https://medium.com/@ganieves" } ], "description": "Codeception module containing various assertions", - "homepage": "http://codeception.com/", + "homepage": "https://codeception.com/", "keywords": [ "assertions", "asserts", "codeception" ], - "time": "2020-04-20T07:26:11+00:00" + "time": "2020-08-28T08:06:29+00:00" }, { "name": "codeception/module-cli", @@ -8674,16 +8702,16 @@ }, { "name": "codeception/module-rest", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/Codeception/module-rest.git", - "reference": "3664989d35003e182631cd9f4bc055fec009f5be" + "reference": "114d640533a2a0a8369d77011fdb3fa36c2ca87f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/module-rest/zipball/3664989d35003e182631cd9f4bc055fec009f5be", - "reference": "3664989d35003e182631cd9f4bc055fec009f5be", + "url": "https://api.github.com/repos/Codeception/module-rest/zipball/114d640533a2a0a8369d77011fdb3fa36c2ca87f", + "reference": "114d640533a2a0a8369d77011fdb3fa36c2ca87f", "shasum": "" }, "require": { @@ -8721,20 +8749,20 @@ "codeception", "rest" ], - "time": "2020-07-05T15:40:45+00:00" + "time": "2020-08-28T06:55:41+00:00" }, { "name": "codeception/phpunit-wrapper", - "version": "9.0.2", + "version": "9.0.4", "source": { "type": "git", "url": "https://github.com/Codeception/phpunit-wrapper.git", - "reference": "eb27243d8edde68593bf8d9ef5e9074734777931" + "reference": "bb0925f1fe7a30105208352e619a11d6096e7047" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/eb27243d8edde68593bf8d9ef5e9074734777931", - "reference": "eb27243d8edde68593bf8d9ef5e9074734777931", + "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/bb0925f1fe7a30105208352e619a11d6096e7047", + "reference": "bb0925f1fe7a30105208352e619a11d6096e7047", "shasum": "" }, "require": { @@ -8765,7 +8793,7 @@ } ], "description": "PHPUnit classes used by Codeception", - "time": "2020-04-17T18:16:31+00:00" + "time": "2020-08-26T18:15:09+00:00" }, { "name": "codeception/stub", @@ -9012,6 +9040,76 @@ ], "time": "2020-05-27T16:41:55+00:00" }, + { + "name": "kint-php/kint", + "version": "3.3", + "source": { + "type": "git", + "url": "https://github.com/kint-php/kint.git", + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kint-php/kint/zipball/335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", + "reference": "335ac1bcaf04d87df70d8aa51e8887ba2c6d203b", + "shasum": "" + }, + "require": { + "php": ">=5.3.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpunit/phpunit": "^4.0", + "seld/phar-utils": "^1.0", + "symfony/finder": "^2.0 || ^3.0 || ^4.0", + "vimeo/psalm": "^3.0" + }, + "suggest": { + "ext-ctype": "Simple data type tests", + "ext-iconv": "Provides fallback detection for ambiguous legacy string encodings such as the Windows and ISO 8859 code pages", + "ext-mbstring": "Provides string encoding detection", + "kint-php/kint-js": "Provides a simplified dump to console.log()", + "kint-php/kint-twig": "Provides d() and s() functions in twig templates", + "symfony/polyfill-ctype": "Replacement for ext-ctype if missing", + "symfony/polyfill-iconv": "Replacement for ext-iconv if missing", + "symfony/polyfill-mbstring": "Replacement for ext-mbstring if missing" + }, + "type": "library", + "autoload": { + "files": [ + "init.php" + ], + "psr-4": { + "Kint\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Vollebregt", + "homepage": "https://github.com/jnvsor" + }, + { + "name": "Rokas Šleinius", + "homepage": "https://github.com/raveren" + }, + { + "name": "Contributors", + "homepage": "https://github.com/kint-php/kint/graphs/contributors" + } + ], + "description": "Kint - debugging tool for PHP developers", + "homepage": "https://kint-php.github.io/kint/", + "keywords": [ + "debug", + "kint", + "php" + ], + "time": "2019-10-17T18:05:24+00:00" + }, { "name": "mockery/mockery", "version": "1.4.2", @@ -9082,16 +9180,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.9.0", + "version": "v4.9.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "aaee038b912e567780949787d5fe1977be11a778" + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/aaee038b912e567780949787d5fe1977be11a778", - "reference": "aaee038b912e567780949787d5fe1977be11a778", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/88e519766fc58bd46b8265561fb79b54e2e00b28", + "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28", "shasum": "" }, "require": { @@ -9130,7 +9228,7 @@ "parser", "php" ], - "time": "2020-08-18T19:48:01+00:00" + "time": "2020-08-30T16:15:20+00:00" }, { "name": "phar-io/manifest", @@ -9445,17 +9543,62 @@ "time": "2020-07-08T12:44:21+00:00" }, { - "name": "phpstan/phpstan", - "version": "0.12.39", + "name": "phpstan/extension-installer", + "version": "1.0.5", "source": { "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "f970cab80f0a681019dc669bf8c72905845dadaa" + "url": "https://github.com/phpstan/extension-installer.git", + "reference": "5c2da3846819f951385cb6a25d3277051481c48a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f970cab80f0a681019dc669bf8c72905845dadaa", - "reference": "f970cab80f0a681019dc669bf8c72905845dadaa", + "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/5c2da3846819f951385cb6a25d3277051481c48a", + "reference": "5c2da3846819f951385cb6a25d3277051481c48a", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1 || ^2.0", + "php": "^7.1 || ^8.0", + "phpstan/phpstan": ">=0.11.6" + }, + "require-dev": { + "composer/composer": "^1.8", + "consistence/coding-standard": "^3.8", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "ergebnis/composer-normalize": "^2.0.2", + "phing/phing": "^2.16", + "php-parallel-lint/php-parallel-lint": "^1.2.0", + "phpstan/phpstan-strict-rules": "^0.11", + "slevomat/coding-standard": "^5.0.4" + }, + "type": "composer-plugin", + "extra": { + "class": "PHPStan\\ExtensionInstaller\\Plugin" + }, + "autoload": { + "psr-4": { + "PHPStan\\ExtensionInstaller\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Composer plugin for automatic installation of PHPStan extensions", + "time": "2020-08-30T12:06:42+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "0.12.40", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "dce7293ad7b59fc09a9ab9b0b5b44902c092ca17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dce7293ad7b59fc09a9ab9b0b5b44902c092ca17", + "reference": "dce7293ad7b59fc09a9ab9b0b5b44902c092ca17", "shasum": "" }, "require": { @@ -9498,7 +9641,7 @@ "type": "tidelift" } ], - "time": "2020-08-24T21:34:53+00:00" + "time": "2020-08-26T19:06:20+00:00" }, { "name": "phpstan/phpstan-doctrine", @@ -9566,69 +9709,18 @@ "description": "Doctrine extensions for PHPStan", "time": "2020-07-21T14:46:27+00:00" }, - { - "name": "phpstan/phpstan-strict-rules", - "version": "0.12.4", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "9b86e1eb77c796628e239820a01a2d327d607a5e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/9b86e1eb77c796628e239820a01a2d327d607a5e", - "reference": "9b86e1eb77c796628e239820a01a2d327d607a5e", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0", - "phpstan/phpstan": "^0.12.33" - }, - "require-dev": { - "consistence/coding-standard": "^3.0.1", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "ergebnis/composer-normalize": "^2.0.2", - "jakub-onderka/php-parallel-lint": "^1.0", - "phing/phing": "^2.16.0", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0", - "slevomat/coding-standard": "^4.5.2" - }, - "type": "phpstan-extension", - "extra": { - "branch-alias": { - "dev-master": "0.12-dev" - }, - "phpstan": { - "includes": [ - "rules.neon" - ] - } - }, - "autoload": { - "psr-4": { - "PHPStan\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Extra strict and opinionated rules for PHPStan", - "time": "2020-07-21T14:49:47+00:00" - }, { "name": "phpunit/php-code-coverage", - "version": "9.1.4", + "version": "9.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "4422fca28c3634e2de8c7c373af97a104dd1a45f" + "reference": "adea70610c070869261d2d0a62fa968611447b56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4422fca28c3634e2de8c7c373af97a104dd1a45f", - "reference": "4422fca28c3634e2de8c7c373af97a104dd1a45f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/adea70610c070869261d2d0a62fa968611447b56", + "reference": "adea70610c070869261d2d0a62fa968611447b56", "shasum": "" }, "require": { @@ -9688,7 +9780,7 @@ "type": "github" } ], - "time": "2020-08-13T15:04:53+00:00" + "time": "2020-08-27T06:29:01+00:00" }, { "name": "phpunit/php-file-iterator", @@ -9917,16 +10009,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.3.7", + "version": "9.3.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c638a0cac77347980352485912de48c99b42ad00" + "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c638a0cac77347980352485912de48c99b42ad00", - "reference": "c638a0cac77347980352485912de48c99b42ad00", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", + "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", "shasum": "" }, "require": { @@ -9942,11 +10034,12 @@ "phar-io/version": "^3.0.2", "php": "^7.3 || ^8.0", "phpspec/prophecy": "^1.11.1", - "phpunit/php-code-coverage": "^9.1.1", + "phpunit/php-code-coverage": "^9.1.5", "phpunit/php-file-iterator": "^3.0.4", "phpunit/php-invoker": "^3.1", "phpunit/php-text-template": "^2.0.2", "phpunit/php-timer": "^5.0.1", + "sebastian/cli-parser": "^1.0", "sebastian/code-unit": "^1.0.5", "sebastian/comparator": "^4.0.3", "sebastian/diff": "^4.0.2", @@ -10011,7 +10104,7 @@ "type": "github" } ], - "time": "2020-08-11T15:36:12+00:00" + "time": "2020-08-27T06:30:58+00:00" }, { "name": "roave/security-advisories", @@ -10019,12 +10112,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "89bed6788d61977969b89d912b5844e8beee09f0" + "reference": "dbda10aea96678b6742e8f0109c1c7ac003a0f69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/89bed6788d61977969b89d912b5844e8beee09f0", - "reference": "89bed6788d61977969b89d912b5844e8beee09f0", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/dbda10aea96678b6742e8f0109c1c7ac003a0f69", + "reference": "dbda10aea96678b6742e8f0109c1c7ac003a0f69", "shasum": "" }, "conflict": { @@ -10040,6 +10133,7 @@ "bagisto/bagisto": "<0.1.5", "barrelstrength/sprout-base-email": "<1.2.7", "barrelstrength/sprout-forms": "<3.9", + "baserproject/basercms": ">=4,<=4.3.6", "bolt/bolt": "<3.7.1", "brightlocal/phpwhois": "<=4.2.5", "buddypress/buddypress": "<5.1.2", @@ -10307,7 +10401,59 @@ "type": "tidelift" } ], - "time": "2020-08-19T19:01:52+00:00" + "time": "2020-08-28T21:02:31+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", + "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-08-12T10:49:21+00:00" }, { "name": "sebastian/code-unit", diff --git a/phpstan.neon b/phpstan.neon index deb685ad4..21661a5e2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,7 +13,4 @@ parameters: ignoreErrors: # Caused by Symfony Validator (perhaps wrongly) returning the interface. - - '#Cannot cast Symfony\\Component\\Validator\\ConstraintViolationListInterface to string.#' - -includes: - - vendor/phpstan/phpstan-doctrine/extension.neon + - '#Cannot cast Symfony\\Component\\Validator\\ConstraintViolationListInterface to string.#' \ No newline at end of file diff --git a/src/AppFactory.php b/src/AppFactory.php index 37aa7fc70..d2b7f4c0d 100644 --- a/src/AppFactory.php +++ b/src/AppFactory.php @@ -34,7 +34,7 @@ class AppFactory // Override DI definitions for settings. $diDefinitions[Settings::class] = $settings; - $diDefinitions['settings'] = DI\get(Settings::class); + $diDefinitions['settings'] = DI\Get(Settings::class); if ($autoloader) { $plugins = new Plugins($settings[Settings::BASE_DIR] . '/plugins'); diff --git a/src/Assets.php b/src/Assets.php index ccd232186..38d014bf6 100644 --- a/src/Assets.php +++ b/src/Assets.php @@ -384,7 +384,7 @@ class Assets protected function _sort(): void { if (!$this->is_sorted) { - uasort($this->loaded, function ($a, $b) { + uasort($this->loaded, function ($a, $b): int { return $a['order'] <=> $b['order']; // SPACESHIP! }); diff --git a/src/Console/Command/ReprocessMediaCommand.php b/src/Console/Command/ReprocessMediaCommand.php index 37ba5735e..5c7c9864d 100644 --- a/src/Console/Command/ReprocessMediaCommand.php +++ b/src/Console/Command/ReprocessMediaCommand.php @@ -34,22 +34,22 @@ class ReprocessMediaCommand extends CommandAbstract } foreach ($stations as $station) { - $io->writeLn('Processing media for station: ' . $station->getName()); + $io->writeln('Processing media for station: ' . $station->getName()); foreach ($station->getMedia() as $media) { /** @var Entity\StationMedia $media */ try { $media_repo->processMedia($media, true); - $io->writeLn('Processed: ' . $media->getPath()); + $io->writeln('Processed: ' . $media->getPath()); } catch (Exception $e) { - $io->writeLn('Could not read source file for: ' . $media->getPath() . ' - ' . $e->getMessage()); + $io->writeln('Could not read source file for: ' . $media->getPath() . ' - ' . $e->getMessage()); continue; } } $em->flush(); - $io->writeLn('Station media reprocessed.'); + $io->writeln('Station media reprocessed.'); } return 0;