diff --git a/composer.json b/composer.json index e4ed2ce2..33d320fd 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "7.3.*||7.4.*||8.0.*", + "php": "7.3.*||7.4.*||8.0.*||8.1.*", "ext-gd": "*", "ext-intl": "*", "ext-json": "*", @@ -77,6 +77,7 @@ "twig/string-extra": "^3.0" }, "require-dev": { + "ext-simplexml": "*", "dama/doctrine-test-bundle": "^6.0", "doctrine/doctrine-fixtures-bundle": "^3.2", "fakerphp/faker": "^1.15", diff --git a/composer.lock b/composer.lock index 97f63884..665d2058 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": "fbe6f1715bc29a0ddd681d97800620d8", + "content-hash": "160646844ffbcab36f100012016ce413", "packages": [ { "name": "beberlei/doctrineextensions", @@ -1299,16 +1299,16 @@ }, { "name": "doctrine/orm", - "version": "2.12.2", + "version": "2.12.3", "source": { "type": "git", "url": "https://github.com/doctrine/orm.git", - "reference": "8291a7f09b12d14783ed6537b4586583d155869e" + "reference": "c05e1709e9ffb9abe8d37260a78975cc816ee385" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/orm/zipball/8291a7f09b12d14783ed6537b4586583d155869e", - "reference": "8291a7f09b12d14783ed6537b4586583d155869e", + "url": "https://api.github.com/repos/doctrine/orm/zipball/c05e1709e9ffb9abe8d37260a78975cc816ee385", + "reference": "c05e1709e9ffb9abe8d37260a78975cc816ee385", "shasum": "" }, "require": { @@ -1337,10 +1337,10 @@ "doctrine/annotations": "^1.13", "doctrine/coding-standard": "^9.0", "phpbench/phpbench": "^0.16.10 || ^1.0", - "phpstan/phpstan": "~1.4.10 || 1.6.3", + "phpstan/phpstan": "~1.4.10 || 1.7.13", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", "psr/log": "^1 || ^2 || ^3", - "squizlabs/php_codesniffer": "3.6.2", + "squizlabs/php_codesniffer": "3.7.0", "symfony/cache": "^4.4 || ^5.4 || ^6.0", "symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0", "vimeo/psalm": "4.23.0" @@ -1392,9 +1392,9 @@ ], "support": { "issues": "https://github.com/doctrine/orm/issues", - "source": "https://github.com/doctrine/orm/tree/2.12.2" + "source": "https://github.com/doctrine/orm/tree/2.12.3" }, - "time": "2022-05-02T19:10:07+00:00" + "time": "2022-06-16T13:42:23+00:00" }, { "name": "doctrine/persistence", @@ -1500,16 +1500,16 @@ }, { "name": "doctrine/sql-formatter", - "version": "1.1.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/doctrine/sql-formatter.git", - "reference": "20c39c2de286a9d3262cc8ed282a4ae60e265894" + "reference": "25a06c7bf4c6b8218f47928654252863ffc890a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/20c39c2de286a9d3262cc8ed282a4ae60e265894", - "reference": "20c39c2de286a9d3262cc8ed282a4ae60e265894", + "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/25a06c7bf4c6b8218f47928654252863ffc890a5", + "reference": "25a06c7bf4c6b8218f47928654252863ffc890a5", "shasum": "" }, "require": { @@ -1535,7 +1535,7 @@ { "name": "Jeremy Dorn", "email": "jeremy@jeremydorn.com", - "homepage": "http://jeremydorn.com/" + "homepage": "https://jeremydorn.com/" } ], "description": "a PHP SQL highlighting library", @@ -1546,22 +1546,22 @@ ], "support": { "issues": "https://github.com/doctrine/sql-formatter/issues", - "source": "https://github.com/doctrine/sql-formatter/tree/1.1.2" + "source": "https://github.com/doctrine/sql-formatter/tree/1.1.3" }, - "time": "2021-11-05T11:11:14+00:00" + "time": "2022-05-23T21:33:49+00:00" }, { "name": "egulias/email-validator", - "version": "3.2", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "a5ed8d58ed0c340a7c2109f587951b1c84cf6286" + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/a5ed8d58ed0c340a7c2109f587951b1c84cf6286", - "reference": "a5ed8d58ed0c340a7c2109f587951b1c84cf6286", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f88dcf4b14af14a98ad96b14b2b317969eab6715", + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715", "shasum": "" }, "require": { @@ -1608,7 +1608,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/3.2" + "source": "https://github.com/egulias/EmailValidator/tree/3.2.1" }, "funding": [ { @@ -1616,7 +1616,7 @@ "type": "github" } ], - "time": "2022-05-28T22:19:18+00:00" + "time": "2022-06-18T20:57:19+00:00" }, { "name": "erusev/parsedown", @@ -4194,16 +4194,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.6.2", + "version": "1.6.4", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "76150ae7512439b4e6903db834e4a327596b617d" + "reference": "135607f9ccc297d6923d49c2bcf309f509413215" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/76150ae7512439b4e6903db834e4a327596b617d", - "reference": "76150ae7512439b4e6903db834e4a327596b617d", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/135607f9ccc297d6923d49c2bcf309f509413215", + "reference": "135607f9ccc297d6923d49c2bcf309f509413215", "shasum": "" }, "require": { @@ -4233,9 +4233,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.6.2" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.6.4" }, - "time": "2022-06-10T09:29:33+00:00" + "time": "2022-06-26T13:09:08+00:00" }, { "name": "psr/cache", @@ -4923,16 +4923,16 @@ }, { "name": "symfony/cache", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "7cdabf9a6a03e291676019184815a14ae310a014" + "reference": "3b3c6019f3df2fa73d15dfed133e432a9801d7eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/7cdabf9a6a03e291676019184815a14ae310a014", - "reference": "7cdabf9a6a03e291676019184815a14ae310a014", + "url": "https://api.github.com/repos/symfony/cache/zipball/3b3c6019f3df2fa73d15dfed133e432a9801d7eb", + "reference": "3b3c6019f3df2fa73d15dfed133e432a9801d7eb", "shasum": "" }, "require": { @@ -4998,7 +4998,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v4.4.42" + "source": "https://github.com/symfony/cache/tree/v4.4.43" }, "funding": [ { @@ -5014,11 +5014,11 @@ "type": "tidelift" } ], - "time": "2022-05-21T09:26:52+00:00" + "time": "2022-06-19T11:27:12+00:00" }, { "name": "symfony/cache-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/cache-contracts.git", @@ -5077,7 +5077,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/cache-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/cache-contracts/tree/v2.5.2" }, "funding": [ { @@ -5175,16 +5175,16 @@ }, { "name": "symfony/console", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "cce7a9f99e22937a71a16b23afa762558808d587" + "reference": "8a2628d2d5639f35113dc1b833ecd91e1ed1cf46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/cce7a9f99e22937a71a16b23afa762558808d587", - "reference": "cce7a9f99e22937a71a16b23afa762558808d587", + "url": "https://api.github.com/repos/symfony/console/zipball/8a2628d2d5639f35113dc1b833ecd91e1ed1cf46", + "reference": "8a2628d2d5639f35113dc1b833ecd91e1ed1cf46", "shasum": "" }, "require": { @@ -5245,7 +5245,7 @@ "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/console/tree/v4.4.42" + "source": "https://github.com/symfony/console/tree/v4.4.43" }, "funding": [ { @@ -5261,7 +5261,7 @@ "type": "tidelift" } ], - "time": "2022-05-14T12:35:33+00:00" + "time": "2022-06-23T12:22:25+00:00" }, { "name": "symfony/css-selector", @@ -5400,16 +5400,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "f6fdbf252765a09c7ac243617f79f1babef792c9" + "reference": "8d0ae6d87ceea5f3a352413f9d1f71ed2234dcbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f6fdbf252765a09c7ac243617f79f1babef792c9", - "reference": "f6fdbf252765a09c7ac243617f79f1babef792c9", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/8d0ae6d87ceea5f3a352413f9d1f71ed2234dcbd", + "reference": "8d0ae6d87ceea5f3a352413f9d1f71ed2234dcbd", "shasum": "" }, "require": { @@ -5466,7 +5466,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v4.4.42" + "source": "https://github.com/symfony/dependency-injection/tree/v4.4.43" }, "funding": [ { @@ -5482,11 +5482,11 @@ "type": "tidelift" } ], - "time": "2022-05-24T15:15:52+00:00" + "time": "2022-06-22T15:01:38+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", @@ -5533,7 +5533,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" }, "funding": [ { @@ -5553,16 +5553,16 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "fbd5b860aa6f2a390efecd9e52541db28fc8b128" + "reference": "7160b02f50158d857beb88724e6f294c21671064" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/fbd5b860aa6f2a390efecd9e52541db28fc8b128", - "reference": "fbd5b860aa6f2a390efecd9e52541db28fc8b128", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/7160b02f50158d857beb88724e6f294c21671064", + "reference": "7160b02f50158d857beb88724e6f294c21671064", "shasum": "" }, "require": { @@ -5643,7 +5643,7 @@ "description": "Provides integration for Doctrine with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/doctrine-bridge/tree/v4.4.42" + "source": "https://github.com/symfony/doctrine-bridge/tree/v4.4.43" }, "funding": [ { @@ -5659,7 +5659,7 @@ "type": "tidelift" } ], - "time": "2022-05-24T14:04:13+00:00" + "time": "2022-06-19T12:26:47+00:00" }, { "name": "symfony/dotenv", @@ -5884,7 +5884,7 @@ }, { "name": "symfony/event-dispatcher-contracts", - "version": "v1.1.12", + "version": "v1.1.13", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", @@ -5943,7 +5943,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v1.1.12" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v1.1.13" }, "funding": [ { @@ -5963,16 +5963,16 @@ }, { "name": "symfony/expression-language", - "version": "v4.4.41", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", - "reference": "2774df99a13bbf2339e1c5b1f8c47dbec8d67c2b" + "reference": "a6c4a3149147002e52bb90615c84fc8053809a4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/expression-language/zipball/2774df99a13bbf2339e1c5b1f8c47dbec8d67c2b", - "reference": "2774df99a13bbf2339e1c5b1f8c47dbec8d67c2b", + "url": "https://api.github.com/repos/symfony/expression-language/zipball/a6c4a3149147002e52bb90615c84fc8053809a4e", + "reference": "a6c4a3149147002e52bb90615c84fc8053809a4e", "shasum": "" }, "require": { @@ -6006,7 +6006,7 @@ "description": "Provides an engine that can compile and evaluate expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/expression-language/tree/v4.4.41" + "source": "https://github.com/symfony/expression-language/tree/v4.4.43" }, "funding": [ { @@ -6022,7 +6022,7 @@ "type": "tidelift" } ], - "time": "2022-04-03T16:32:29+00:00" + "time": "2022-06-19T09:33:27+00:00" }, { "name": "symfony/filesystem", @@ -6151,16 +6151,16 @@ }, { "name": "symfony/flex", - "version": "v1.19.1", + "version": "v1.19.2", "source": { "type": "git", "url": "https://github.com/symfony/flex.git", - "reference": "9c612796a68de4196fff4bc159db5071aa62d428" + "reference": "d1a692369be53445af6e391170b509d7f5d026cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/flex/zipball/9c612796a68de4196fff4bc159db5071aa62d428", - "reference": "9c612796a68de4196fff4bc159db5071aa62d428", + "url": "https://api.github.com/repos/symfony/flex/zipball/d1a692369be53445af6e391170b509d7f5d026cf", + "reference": "d1a692369be53445af6e391170b509d7f5d026cf", "shasum": "" }, "require": { @@ -6196,7 +6196,7 @@ "description": "Composer plugin for Symfony", "support": { "issues": "https://github.com/symfony/flex/issues", - "source": "https://github.com/symfony/flex/tree/v1.19.1" + "source": "https://github.com/symfony/flex/tree/v1.19.2" }, "funding": [ { @@ -6212,20 +6212,20 @@ "type": "tidelift" } ], - "time": "2022-06-06T15:14:39+00:00" + "time": "2022-06-14T21:13:39+00:00" }, { "name": "symfony/form", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/form.git", - "reference": "b19668b10c18deb56ff8068070afa5300f01f500" + "reference": "12fc5eb343752b6c3a6c0237fc1bb041afcefb8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/form/zipball/b19668b10c18deb56ff8068070afa5300f01f500", - "reference": "b19668b10c18deb56ff8068070afa5300f01f500", + "url": "https://api.github.com/repos/symfony/form/zipball/12fc5eb343752b6c3a6c0237fc1bb041afcefb8c", + "reference": "12fc5eb343752b6c3a6c0237fc1bb041afcefb8c", "shasum": "" }, "require": { @@ -6294,7 +6294,7 @@ "description": "Allows to easily create, process and reuse HTML forms", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/form/tree/v4.4.42" + "source": "https://github.com/symfony/form/tree/v4.4.43" }, "funding": [ { @@ -6310,20 +6310,20 @@ "type": "tidelift" } ], - "time": "2022-05-21T14:03:14+00:00" + "time": "2022-06-19T11:38:50+00:00" }, { "name": "symfony/framework-bundle", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "24129749500ba6e9b1b2a75622323b4ce23d7b23" + "reference": "07a0ce6656e6de53a529018fe7a1421be838d2ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/24129749500ba6e9b1b2a75622323b4ce23d7b23", - "reference": "24129749500ba6e9b1b2a75622323b4ce23d7b23", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/07a0ce6656e6de53a529018fe7a1421be838d2ad", + "reference": "07a0ce6656e6de53a529018fe7a1421be838d2ad", "shasum": "" }, "require": { @@ -6440,7 +6440,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v4.4.42" + "source": "https://github.com/symfony/framework-bundle/tree/v4.4.43" }, "funding": [ { @@ -6456,7 +6456,7 @@ "type": "tidelift" } ], - "time": "2022-05-27T06:27:54+00:00" + "time": "2022-06-14T12:25:52+00:00" }, { "name": "symfony/google-mailer", @@ -6603,16 +6603,16 @@ }, { "name": "symfony/http-client-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "1a4f708e4e87f335d1b1be6148060739152f0bd5" + "reference": "ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/1a4f708e4e87f335d1b1be6148060739152f0bd5", - "reference": "1a4f708e4e87f335d1b1be6148060739152f0bd5", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70", + "reference": "ba6a9f0e8f3edd190520ee3b9a958596b6ca2e70", "shasum": "" }, "require": { @@ -6661,7 +6661,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/http-client-contracts/tree/v2.5.2" }, "funding": [ { @@ -6677,20 +6677,20 @@ "type": "tidelift" } ], - "time": "2022-03-13T20:07:29+00:00" + "time": "2022-04-12T15:48:08+00:00" }, { "name": "symfony/http-foundation", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "8e87b3ec23ebbcf7440d91dec8f7ca70dd591eb3" + "reference": "4441dada27f9208e03f449d73cb9253c639e53c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8e87b3ec23ebbcf7440d91dec8f7ca70dd591eb3", - "reference": "8e87b3ec23ebbcf7440d91dec8f7ca70dd591eb3", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/4441dada27f9208e03f449d73cb9253c639e53c5", + "reference": "4441dada27f9208e03f449d73cb9253c639e53c5", "shasum": "" }, "require": { @@ -6729,7 +6729,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v4.4.42" + "source": "https://github.com/symfony/http-foundation/tree/v4.4.43" }, "funding": [ { @@ -6745,20 +6745,20 @@ "type": "tidelift" } ], - "time": "2022-05-17T11:15:18+00:00" + "time": "2022-06-19T13:07:44+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "04181de9459df639512dadf83d544ce12edd6776" + "reference": "c4c33fb9203e6f166ac0f318ce34e00686702522" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/04181de9459df639512dadf83d544ce12edd6776", - "reference": "04181de9459df639512dadf83d544ce12edd6776", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/c4c33fb9203e6f166ac0f318ce34e00686702522", + "reference": "c4c33fb9203e6f166ac0f318ce34e00686702522", "shasum": "" }, "require": { @@ -6833,7 +6833,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v4.4.42" + "source": "https://github.com/symfony/http-kernel/tree/v4.4.43" }, "funding": [ { @@ -6849,7 +6849,7 @@ "type": "tidelift" } ], - "time": "2022-05-27T07:04:21+00:00" + "time": "2022-06-26T16:51:30+00:00" }, { "name": "symfony/inflector", @@ -6925,16 +6925,16 @@ }, { "name": "symfony/intl", - "version": "v4.4.41", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/intl.git", - "reference": "b95abb9cfb6d8ef4da80fef36ef7cabc1391682e" + "reference": "35283709941709b7be21ae70b086646afe9e50ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/intl/zipball/b95abb9cfb6d8ef4da80fef36ef7cabc1391682e", - "reference": "b95abb9cfb6d8ef4da80fef36ef7cabc1391682e", + "url": "https://api.github.com/repos/symfony/intl/zipball/35283709941709b7be21ae70b086646afe9e50ab", + "reference": "35283709941709b7be21ae70b086646afe9e50ab", "shasum": "" }, "require": { @@ -6993,7 +6993,7 @@ "localization" ], "support": { - "source": "https://github.com/symfony/intl/tree/v4.4.41" + "source": "https://github.com/symfony/intl/tree/v4.4.43" }, "funding": [ { @@ -7009,7 +7009,7 @@ "type": "tidelift" } ], - "time": "2022-04-07T09:33:50+00:00" + "time": "2022-06-21T12:42:24+00:00" }, { "name": "symfony/mailchimp-mailer", @@ -7078,16 +7078,16 @@ }, { "name": "symfony/mailer", - "version": "v4.4.41", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "62d909879078b31f338b26a2701c8f8802343769" + "reference": "c93adcadbc7f2b483902f4961ab23dd31528669f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/62d909879078b31f338b26a2701c8f8802343769", - "reference": "62d909879078b31f338b26a2701c8f8802343769", + "url": "https://api.github.com/repos/symfony/mailer/zipball/c93adcadbc7f2b483902f4961ab23dd31528669f", + "reference": "c93adcadbc7f2b483902f4961ab23dd31528669f", "shasum": "" }, "require": { @@ -7139,7 +7139,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v4.4.41" + "source": "https://github.com/symfony/mailer/tree/v4.4.43" }, "funding": [ { @@ -7155,7 +7155,7 @@ "type": "tidelift" } ], - "time": "2022-04-27T04:12:05+00:00" + "time": "2022-05-16T21:33:45+00:00" }, { "name": "symfony/mailgun-mailer", @@ -7224,16 +7224,16 @@ }, { "name": "symfony/mime", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "f4f3e994024f16c1d6ca8338c62a10e0767314fc" + "reference": "de46889e8844d8327677582950bd227273d8f2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/f4f3e994024f16c1d6ca8338c62a10e0767314fc", - "reference": "f4f3e994024f16c1d6ca8338c62a10e0767314fc", + "url": "https://api.github.com/repos/symfony/mime/zipball/de46889e8844d8327677582950bd227273d8f2f3", + "reference": "de46889e8844d8327677582950bd227273d8f2f3", "shasum": "" }, "require": { @@ -7280,7 +7280,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v4.4.42" + "source": "https://github.com/symfony/mime/tree/v4.4.43" }, "funding": [ { @@ -7296,20 +7296,20 @@ "type": "tidelift" } ], - "time": "2022-05-21T10:10:45+00:00" + "time": "2022-06-01T19:35:40+00:00" }, { "name": "symfony/monolog-bridge", - "version": "v4.4.37", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/monolog-bridge.git", - "reference": "152dcde5092b6fe034369f4a2dea05de38db9b79" + "reference": "ad09c9980b912e757c4ecd8363cebf3039d1d471" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/152dcde5092b6fe034369f4a2dea05de38db9b79", - "reference": "152dcde5092b6fe034369f4a2dea05de38db9b79", + "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/ad09c9980b912e757c4ecd8363cebf3039d1d471", + "reference": "ad09c9980b912e757c4ecd8363cebf3039d1d471", "shasum": "" }, "require": { @@ -7360,7 +7360,7 @@ "description": "Provides integration for Monolog with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/monolog-bridge/tree/v4.4.37" + "source": "https://github.com/symfony/monolog-bridge/tree/v4.4.43" }, "funding": [ { @@ -7376,7 +7376,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:41:36+00:00" + "time": "2022-06-16T12:12:11+00:00" }, { "name": "symfony/monolog-bundle", @@ -9060,16 +9060,16 @@ }, { "name": "symfony/serializer", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "234c6d024b5664d8fe6c117140196e00ba3fa626" + "reference": "bd020a578d786952cf5d67f8140dfacc161f58a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/234c6d024b5664d8fe6c117140196e00ba3fa626", - "reference": "234c6d024b5664d8fe6c117140196e00ba3fa626", + "url": "https://api.github.com/repos/symfony/serializer/zipball/bd020a578d786952cf5d67f8140dfacc161f58a4", + "reference": "bd020a578d786952cf5d67f8140dfacc161f58a4", "shasum": "" }, "require": { @@ -9134,7 +9134,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v4.4.42" + "source": "https://github.com/symfony/serializer/tree/v4.4.43" }, "funding": [ { @@ -9150,20 +9150,20 @@ "type": "tidelift" } ], - "time": "2022-05-10T09:16:50+00:00" + "time": "2022-06-24T10:10:05+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c" + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/24d9dc654b83e91aa59f9d167b131bc3b5bea24c", - "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", "shasum": "" }, "require": { @@ -9217,7 +9217,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" }, "funding": [ { @@ -9233,7 +9233,7 @@ "type": "tidelift" } ], - "time": "2022-03-13T20:07:29+00:00" + "time": "2022-05-30T19:17:29+00:00" }, { "name": "symfony/stopwatch", @@ -9299,16 +9299,16 @@ }, { "name": "symfony/string", - "version": "v5.4.9", + "version": "v5.4.10", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99" + "reference": "4432bc7df82a554b3e413a8570ce2fea90e94097" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", - "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", + "url": "https://api.github.com/repos/symfony/string/zipball/4432bc7df82a554b3e413a8570ce2fea90e94097", + "reference": "4432bc7df82a554b3e413a8570ce2fea90e94097", "shasum": "" }, "require": { @@ -9365,7 +9365,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.9" + "source": "https://github.com/symfony/string/tree/v5.4.10" }, "funding": [ { @@ -9381,7 +9381,7 @@ "type": "tidelift" } ], - "time": "2022-04-19T10:40:37+00:00" + "time": "2022-06-26T15:57:47+00:00" }, { "name": "symfony/translation", @@ -9474,16 +9474,16 @@ }, { "name": "symfony/translation-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07" + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1211df0afa701e45a04253110e959d4af4ef0f07", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", "shasum": "" }, "require": { @@ -9532,7 +9532,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.2" }, "funding": [ { @@ -9548,7 +9548,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/twig-bridge", @@ -9831,16 +9831,16 @@ }, { "name": "symfony/validator", - "version": "v4.4.41", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "b79a7830b8ead3fb0a2a0080ba6f5b2a0861c28c" + "reference": "5ae0de59615dff1896d44bc986ad87600ea121e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/b79a7830b8ead3fb0a2a0080ba6f5b2a0861c28c", - "reference": "b79a7830b8ead3fb0a2a0080ba6f5b2a0861c28c", + "url": "https://api.github.com/repos/symfony/validator/zipball/5ae0de59615dff1896d44bc986ad87600ea121e7", + "reference": "5ae0de59615dff1896d44bc986ad87600ea121e7", "shasum": "" }, "require": { @@ -9917,7 +9917,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v4.4.41" + "source": "https://github.com/symfony/validator/tree/v4.4.43" }, "funding": [ { @@ -9933,7 +9933,7 @@ "type": "tidelift" } ], - "time": "2022-04-14T15:50:15+00:00" + "time": "2022-06-05T18:35:51+00:00" }, { "name": "symfony/var-dumper", @@ -10026,16 +10026,16 @@ }, { "name": "symfony/var-exporter", - "version": "v4.4.42", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "8915c5870154e0fbdc519fa94d15accc18e0e5f2" + "reference": "4a7a3a3d55c471d396e6d28011368b7b83cb518b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/8915c5870154e0fbdc519fa94d15accc18e0e5f2", - "reference": "8915c5870154e0fbdc519fa94d15accc18e0e5f2", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/4a7a3a3d55c471d396e6d28011368b7b83cb518b", + "reference": "4a7a3a3d55c471d396e6d28011368b7b83cb518b", "shasum": "" }, "require": { @@ -10079,7 +10079,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v4.4.42" + "source": "https://github.com/symfony/var-exporter/tree/v4.4.43" }, "funding": [ { @@ -10095,7 +10095,7 @@ "type": "tidelift" } ], - "time": "2022-05-21T10:00:54+00:00" + "time": "2022-05-27T11:44:32+00:00" }, { "name": "symfony/webpack-encore-bundle", @@ -10170,16 +10170,16 @@ }, { "name": "symfony/yaml", - "version": "v4.4.37", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "d7f637cc0f0cc14beb0984f2bb50da560b271311" + "reference": "07e392f0ef78376d080d5353c081a5e5704835bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/d7f637cc0f0cc14beb0984f2bb50da560b271311", - "reference": "d7f637cc0f0cc14beb0984f2bb50da560b271311", + "url": "https://api.github.com/repos/symfony/yaml/zipball/07e392f0ef78376d080d5353c081a5e5704835bd", + "reference": "07e392f0ef78376d080d5353c081a5e5704835bd", "shasum": "" }, "require": { @@ -10221,7 +10221,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v4.4.37" + "source": "https://github.com/symfony/yaml/tree/v4.4.43" }, "funding": [ { @@ -10237,7 +10237,7 @@ "type": "tidelift" } ], - "time": "2022-01-24T20:11:01+00:00" + "time": "2022-06-20T08:31:17+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -10888,16 +10888,16 @@ }, { "name": "zircote/swagger-php", - "version": "2.1.1", + "version": "2.1.2", "source": { "type": "git", "url": "https://github.com/zircote/swagger-php.git", - "reference": "2ea32ca26a87284c7f7feaeb2934b07802dba479" + "reference": "f144351118e6bcc04a275f490d7e359a3dd62586" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zircote/swagger-php/zipball/2ea32ca26a87284c7f7feaeb2934b07802dba479", - "reference": "2ea32ca26a87284c7f7feaeb2934b07802dba479", + "url": "https://api.github.com/repos/zircote/swagger-php/zipball/f144351118e6bcc04a275f490d7e359a3dd62586", + "reference": "f144351118e6bcc04a275f490d7e359a3dd62586", "shasum": "" }, "require": { @@ -10947,9 +10947,9 @@ ], "support": { "issues": "https://github.com/zircote/swagger-php/issues", - "source": "https://github.com/zircote/swagger-php/tree/2.1.1" + "source": "https://github.com/zircote/swagger-php/tree/2.1.2" }, - "time": "2021-12-27T09:08:49+00:00" + "time": "2022-06-18T00:00:23+00:00" } ], "packages-dev": [ @@ -11847,16 +11847,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.7.12", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "32f10779d9cd88a9cbd972ec611a4148a3cbbc7e" + "reference": "b7648d4ee9321665acaf112e49da9fd93df8fbd5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/32f10779d9cd88a9cbd972ec611a4148a3cbbc7e", - "reference": "32f10779d9cd88a9cbd972ec611a4148a3cbbc7e", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b7648d4ee9321665acaf112e49da9fd93df8fbd5", + "reference": "b7648d4ee9321665acaf112e49da9fd93df8fbd5", "shasum": "" }, "require": { @@ -11882,7 +11882,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.7.12" + "source": "https://github.com/phpstan/phpstan/tree/1.8.0" }, "funding": [ { @@ -11902,7 +11902,7 @@ "type": "tidelift" } ], - "time": "2022-06-09T12:39:36+00:00" + "time": "2022-06-29T08:53:31+00:00" }, { "name": "phpstan/phpstan-doctrine", @@ -12415,16 +12415,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.20", + "version": "9.5.21", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" + "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1", + "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1", "shasum": "" }, "require": { @@ -12458,7 +12458,6 @@ "sebastian/version": "^3.0.2" }, "require-dev": { - "ext-pdo": "*", "phpspec/prophecy-phpunit": "^2.0.1" }, "suggest": { @@ -12502,7 +12501,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21" }, "funding": [ { @@ -12514,7 +12513,7 @@ "type": "github" } ], - "time": "2022-04-01T12:37:26+00:00" + "time": "2022-06-19T12:14:25+00:00" }, { "name": "sebastian/cli-parser", @@ -13929,16 +13928,16 @@ }, { "name": "symfony/web-profiler-bundle", - "version": "v4.4.41", + "version": "v4.4.43", "source": { "type": "git", "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "283431217c69c52216818d1849cacfeba5ee9eff" + "reference": "3218f73954657fc7ebdd42edf92da5f90673b38f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/283431217c69c52216818d1849cacfeba5ee9eff", - "reference": "283431217c69c52216818d1849cacfeba5ee9eff", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/3218f73954657fc7ebdd42edf92da5f90673b38f", + "reference": "3218f73954657fc7ebdd42edf92da5f90673b38f", "shasum": "" }, "require": { @@ -13988,7 +13987,7 @@ "description": "Provides a development tool that gives detailed information about the execution of any request", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/web-profiler-bundle/tree/v4.4.41" + "source": "https://github.com/symfony/web-profiler-bundle/tree/v4.4.43" }, "funding": [ { @@ -14004,7 +14003,7 @@ "type": "tidelift" } ], - "time": "2022-04-16T22:36:28+00:00" + "time": "2022-06-03T07:51:56+00:00" }, { "name": "theseer/tokenizer", @@ -14063,7 +14062,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "7.3.*||7.4.*||8.0.*", + "php": "7.3.*||7.4.*||8.0.*||8.1.*", "ext-gd": "*", "ext-intl": "*", "ext-json": "*", @@ -14073,7 +14072,9 @@ "ext-xsl": "*", "ext-zip": "*" }, - "platform-dev": [], + "platform-dev": { + "ext-simplexml": "*" + }, "platform-overrides": { "php": "7.3" }, diff --git a/phpstan.neon b/phpstan.neon index 0423af3b..e65f3b09 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -9,6 +9,8 @@ parameters: tmpDir: %rootDir%/../../../var/cache/phpstan ignoreErrors: - '#Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required.#' + - '#Trait App\\Export\\Renderer\\RendererTrait is used zero times and is not analysed.#' + - '#Trait App\\Invoice\\Renderer\\RendererTrait is used zero times and is not analysed.#' excludePaths: - %rootDir%/../../../src/Ldap/LdapDriver.php treatPhpDocTypesAsCertain: false diff --git a/src/Command/TranslationCommand.php b/src/Command/TranslationCommand.php index d61dfed9..31f37a22 100644 --- a/src/Command/TranslationCommand.php +++ b/src/Command/TranslationCommand.php @@ -51,6 +51,7 @@ class TranslationCommand extends Command ->addOption('delete-resname', null, InputOption::VALUE_REQUIRED, 'Deletes the translation by resname') ->addOption('extension', null, InputOption::VALUE_NONE, 'Find translation files with wrong extensions') ->addOption('fill-empty', null, InputOption::VALUE_NONE, 'Pre-fills empty translations with the english version') + ->addOption('delete-empty', null, InputOption::VALUE_NONE, 'Delete all empty kyes and files which have no translated key at all') // DEEPL TRANSLATION FEATURE - UNTESTED ->addOption('translate-locale', null, InputOption::VALUE_REQUIRED, 'Translate into the given locale with Deepl') // @see https://www.deepl.com/de/pro#developer @@ -131,7 +132,7 @@ class TranslationCommand extends Command continue; } - $this->fixEmptyTranslations($file, $translations[$fromLocale][$name]); + $this->fillEmptyTranslations($file, $translations[$fromLocale][$name]); } } } @@ -179,6 +180,17 @@ class TranslationCommand extends Command } } + // ========================================================================== + // Delete empty translation keys and files without any translation + // ========================================================================== + if ($input->getOption('delete-empty')) { + foreach ($bases as $directory) { + foreach (glob($directory) as $file) { + $this->removeEmptyTranslations($io, $file); + } + } + } + // ========================================================================== // DEEPL // ========================================================================== @@ -399,7 +411,7 @@ class TranslationCommand extends Command file_put_contents($file, $xmlDocument->saveXML()); } - private function fixEmptyTranslations(string $file, array $translations): void + private function fillEmptyTranslations(string $file, array $translations): void { $xml = simplexml_load_file($file); $foundEmpty = false; @@ -463,6 +475,51 @@ class TranslationCommand extends Command file_put_contents($file, $xmlDocument->saveXML()); } + private function removeEmptyTranslations(SymfonyStyle $io, string $file): void + { + $xml = simplexml_load_file($file); + $hasTranslation = false; + + /** @var \SimpleXMLElement $unit */ + foreach ($xml->file->body->{'trans-unit'} as $unit) { + $translation = (string) $unit->target; + if (\strlen($translation) > 0) { + $hasTranslation = true; + break; + } + } + + if (!$hasTranslation) { + unlink($file); + $io->warning('Removed empty translation file: ' . basename($file)); + + return; + } + + $xmlDocument = new \DOMDocument('1.0'); + $xmlDocument->preserveWhiteSpace = false; + $xmlDocument->loadXML($xml->asXML()); + + $removedTranslation = false; + $elements = $xmlDocument->getElementsByTagName('target'); + foreach ($elements as $element) { + if ($element->nodeValue === '' || $element->nodeValue === null) { + /** @var \DOMElement $parent */ + $parent = $element->parentNode; + $io->text('Remove empty translation: ' . $parent->getAttribute('resname')); + $parent->parentNode->removeChild($parent); + $removedTranslation = true; + } + } + + if ($removedTranslation) { + $xmlDocument->formatOutput = true; + + file_put_contents($file, $xmlDocument->saveXML()); + $io->warning('Removed empty translations from file: ' . basename($file)); + } + } + private function generateId(string $source): string { return strtr(substr(base64_encode(hash('sha256', $source, true)), 0, 7), '/+', '._'); diff --git a/src/Constants.php b/src/Constants.php index e6d7a364..58a18b68 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -17,11 +17,11 @@ class Constants /** * The current release version */ - public const VERSION = '1.20.5'; + public const VERSION = '1.21'; /** * The current release: major * 10000 + minor * 100 + patch */ - public const VERSION_ID = 12005; + public const VERSION_ID = 12100; /** * The current release status, either "stable" or "dev" */ diff --git a/src/Export/Renderer/RendererTrait.php b/src/Export/Renderer/RendererTrait.php index 56c99092..cacd15f1 100644 --- a/src/Export/Renderer/RendererTrait.php +++ b/src/Export/Renderer/RendererTrait.php @@ -13,6 +13,7 @@ use App\Export\Base\RendererTrait as BaseRendererTrait; /** * @deprecated since 1.6, will be removed with 2.0 + * @phpstan-ignore-next-line */ trait RendererTrait { diff --git a/src/Repository/TimesheetRepository.php b/src/Repository/TimesheetRepository.php index c2a5b060..efe36bf7 100644 --- a/src/Repository/TimesheetRepository.php +++ b/src/Repository/TimesheetRepository.php @@ -328,9 +328,11 @@ class TimesheetRepository extends EntityRepository } if (\is_array($select)) { + /* @phpstan-ignore-next-line */ return $qb->getQuery()->getOneOrNullResult(); } + /** @phpstan-ignore-next-line */ $result = $qb->getQuery()->getSingleScalarResult(); return empty($result) ? 0 : $result;