From 281212c17a185c6dabcb4ed1e1cd4962941b0165 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sat, 5 Mar 2022 19:13:46 +0100 Subject: [PATCH 1/8] =?UTF-8?q?Raise=20awareness=20of=20current=20Russia-U?= =?UTF-8?q?kraine=20situation,=20targeting=20Russian=20=F0=9F=87=B7?= =?UTF-8?q?=F0=9F=87=BA=20=20readers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This message is intended to fight misinformation around the Russian aggression of Ukraine, precisely for Russian residents that are kept unaware of the atrocities that Vladimir Putin started in February 2022. Please do help spread this message: good people will try helping, but they first need to know. Ref: https://github.com/vshymanskyy/StandWithUkraine/blob/6cedba904e888c0188e1a31b1463618112e41bfd/docs/ToRussianPeople.md Ref: https://github.com/vshymanskyy/StandWithUkraine/issues/4 --- README.md | 6 ++++++ ToRussianPeople.md | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ToRussianPeople.md diff --git a/README.md b/README.md index 457a5a00..0c7a3bb3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # Proxy Manager +## A message to Russian πŸ‡·πŸ‡Ί people + +If you currently live in Russia, please read [this message](./ToRussianPeople.md). + +## Purpose + This library aims to provide abstraction for generating various kinds of [proxy classes](http://ocramius.github.io/presentations/proxy-pattern-in-php/). diff --git a/ToRussianPeople.md b/ToRussianPeople.md new file mode 100644 index 00000000..a64e9ca0 --- /dev/null +++ b/ToRussianPeople.md @@ -0,0 +1,22 @@ + +## πŸ‡·πŸ‡Ί Русским Π³Ρ€Π°ΠΆΠ΄Π°Π½Π°ΠΌ + +Π’ Π£ΠΊΡ€Π°ΠΈΠ½Π΅ сСйчас ΠΈΠ΄Π΅Ρ‚ Π²ΠΎΠΉΠ½Π°. Π‘ΠΈΠ»Π°ΠΌΠΈ Π Π€ наносятся ΡƒΠ΄Π°Ρ€Ρ‹ ΠΏΠΎ граТданской инфраструктурС Π² [Π₯Π°Ρ€ΡŒΠΊΠΎΠ²Π΅][1], [КиСвС][2], [Π§Π΅Ρ€Π½ΠΈΠ³ΠΎΠ²Π΅][3], [Π‘ΡƒΠΌΠ°Ρ…][4], [Π˜Ρ€ΠΏΠ΅Π½Π΅][5] ΠΈ дСсятках Π΄Ρ€ΡƒΠ³ΠΈΡ… Π³ΠΎΡ€ΠΎΠ΄ΠΎΠ². Π“ΠΈΠ±Π½ΡƒΡ‚ люди - ΠΈ граТданскоС насСлСниС, ΠΈ Π²ΠΎΠ΅Π½Π½Ρ‹Π΅, Π² Ρ‚ΠΎΠΌ числС российскиС ΠΏΡ€ΠΈΠ·Ρ‹Π²Π½ΠΈΠΊΠΈ, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… бросили Π²ΠΎΠ΅Π²Π°Ρ‚ΡŒ. Π§Ρ‚ΠΎΠ±Ρ‹ Π»ΠΈΡˆΠΈΡ‚ΡŒ собствСнный Π½Π°Ρ€ΠΎΠ΄ доступа ΠΊ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ, ΠΏΡ€Π°Π²ΠΈΡ‚Π΅Π»ΡŒΡΡ‚Π²ΠΎ Π Π€ Π·Π°ΠΏΡ€Π΅Ρ‚ΠΈΠ»ΠΎ Π½Π°Π·Ρ‹Π²Π°Ρ‚ΡŒ Π²ΠΎΠΉΠ½Ρƒ Π²ΠΎΠΉΠ½ΠΎΠΉ, Π·Π°ΠΊΡ€Ρ‹Π»ΠΎ нСзависимыС БМИ ΠΈ ΠΏΡ€ΠΈΠ½ΠΈΠΌΠ°Π΅Ρ‚ сСйчас ряд диктаторских Π·Π°ΠΊΠΎΠ½ΠΎΠ². Π­Ρ‚ΠΈ Π·Π°ΠΊΠΎΠ½Ρ‹ ΠΏΡ€ΠΈΠ·Π²Π°Π½Ρ‹ Π·Π°Ρ‚ΠΊΠ½ΡƒΡ‚ΡŒ Ρ€ΠΎΡ‚ всСм, ΠΊΡ‚ΠΎ ΠΏΡ€ΠΎΡ‚ΠΈΠ² Π²ΠΎΠΉΠ½Ρ‹. Π—Π° ΠΎΠ±Ρ‹Ρ‡Π½Ρ‹ΠΉ ΠΏΡ€ΠΈΠ·Ρ‹Π² ΠΊ ΠΌΠΈΡ€Ρƒ сСйчас ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ нСсколько Π»Π΅Ρ‚ Ρ‚ΡŽΡ€ΡŒΠΌΡ‹. + +НС ΠΌΠΎΠ»Ρ‡ΠΈΡ‚Π΅! ΠœΠΎΠ»Ρ‡Π°Π½ΠΈΠ΅ - Π·Π½Π°ΠΊ вашСго согласия с ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠΎΠΉ российского ΠΏΡ€Π°Π²ΠΈΡ‚Π΅Π»ΡŒΡΡ‚Π²Π°. +**Π’Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π²Ρ‹Π±ΠΎΡ€ НЕ ΠœΠžΠ›Π§ΠΠ’Π¬.** + +--- + +## πŸ‡ΊπŸ‡Έ To people of Russia + +There is a war in Ukraine right now. The forces of the Russian Federation are attacking civilian infrastructure in [Kharkiv][1], [Kyiv][2], [Chernihiv][3], [Sumy][4], [Irpin][5] and dozens of other cities. People are dying – both civilians and military servicemen, including Russian conscripts who were thrown into the fighting. In order to deprive its own people of access to information, the government of the Russian Federation has forbidden calling a war a war, shut down independent media and is passing a number of dictatorial laws. These laws are meant to silence all those who are against war. You can be jailed for multiple years for simply calling for peace. + +Do not be silent! Silence is a sign that you accept the Russian government's policy. +**You can choose NOT TO BE SILENT.** + +[1]: "Kharkiv under attack" +[2]: "Kyiv under attack" +[3]: "Chernihiv under attack" +[4]: "Sumy under attack" +[5]: "Irpin under attack" From 4800b8b4cf32c77d8a56fa0f753f9a91acf37c63 Mon Sep 17 00:00:00 2001 From: Jefersson Nathan Date: Thu, 27 Oct 2022 17:05:55 +0200 Subject: [PATCH 2/8] Remove codelicia/xulieta as a dev dependencies I'm not sure itl brought any value to the project. The api is solid and the API doesn't changes that much. That is why I'm removing it, we could also just use the package though the CI without requiring it in the composer.json file. Signed-off-by: Jefersson Nathan --- .github/workflows/xulieta.yml | 56 --- composer.json | 1 - composer.lock | 628 +--------------------------------- 3 files changed, 2 insertions(+), 683 deletions(-) delete mode 100644 .github/workflows/xulieta.yml diff --git a/.github/workflows/xulieta.yml b/.github/workflows/xulieta.yml deleted file mode 100644 index d564295b..00000000 --- a/.github/workflows/xulieta.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: "Documentation Snippes Check by Xulieta" - -on: - pull_request: - push: - -jobs: - static-analysis-psalm: - name: "Documentation Snippes Check by Xulieta" - - runs-on: ${{ matrix.operating-system }} - - strategy: - matrix: - dependencies: - - "locked" - php-version: - - "8.0" - operating-system: - - "ubuntu-latest" - - steps: - - name: "Checkout" - uses: "actions/checkout@v2" - - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" - with: - coverage: "pcov" - php-version: "${{ matrix.php-version }}" - ini-values: memory_limit=-1 - tools: composer:v2, cs2pr - - - name: "Cache dependencies" - uses: "actions/cache@v2" - with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress --no-suggest" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress --no-suggest" - - - name: "xulieta" - run: "vendor/bin/xulieta check:erromeu ." diff --git a/composer.json b/composer.json index 279f735c..9f152ef8 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,6 @@ }, "require-dev": { "ext-phar": "*", - "codelicia/xulieta": "^0.1.6", "doctrine/coding-standard": "^9.0.0", "phpbench/phpbench": "^1.0.3", "phpunit/phpunit": "^9.5.6", diff --git a/composer.lock b/composer.lock index e1f45934..b682b287 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": "da7e8e29fd166baf1cd0f010bacd1478", + "content-hash": "b4ec0e11dbcf5894f37f6c27832ebcd8", "packages": [ { "name": "laminas/laminas-code", @@ -300,154 +300,6 @@ ], "time": "2021-03-30T17:13:30+00:00" }, - { - "name": "beberlei/assert", - "version": "v3.3.1", - "source": { - "type": "git", - "url": "https://github.com/beberlei/assert.git", - "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/5e721d7e937ca3ba2cdec1e1adf195f9e5188372", - "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "ext-json": "*", - "ext-mbstring": "*", - "ext-simplexml": "*", - "php": "^7.0 || ^8.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "*", - "phpstan/phpstan": "*", - "phpunit/phpunit": ">=6.0.0", - "yoast/phpunit-polyfills": "^0.1.0" - }, - "suggest": { - "ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles" - }, - "type": "library", - "autoload": { - "psr-4": { - "Assert\\": "lib/Assert" - }, - "files": [ - "lib/Assert/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-2-Clause" - ], - "authors": [ - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de", - "role": "Lead Developer" - }, - { - "name": "Richard Quadling", - "email": "rquadling@gmail.com", - "role": "Collaborator" - } - ], - "description": "Thin assertion library for input validation in business models.", - "keywords": [ - "assert", - "assertion", - "validation" - ], - "support": { - "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.1" - }, - "time": "2021-04-18T20:11:03+00:00" - }, - { - "name": "codelicia/xulieta", - "version": "0.1.6", - "source": { - "type": "git", - "url": "https://github.com/codelicia/xulieta.git", - "reference": "d8d464d788cbdeabb0784b0937059bf06f90954c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/codelicia/xulieta/zipball/d8d464d788cbdeabb0784b0937059bf06f90954c", - "reference": "d8d464d788cbdeabb0784b0937059bf06f90954c", - "shasum": "" - }, - "require": { - "beberlei/assert": "^v3.2.7", - "doctrine/rst-parser": "^0.1.0", - "nikic/php-parser": "^v4.10.2", - "ocramius/package-versions": "^1.9", - "php": ">=7.4 | ~8.0", - "symfony/config": "^v5.1.8", - "symfony/console": "^v5.1.8", - "symfony/finder": "^v5.1.8", - "symfony/process": "^v5.1.8", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "doctrine/coding-standard": "^8.2.0", - "infection/infection": "^0.19.2", - "malukenho/mcbumpface": "^1.1.5", - "phpunit/phpunit": "^9.4.2", - "roave/security-advisories": "dev-master", - "staabm/annotate-pull-request-from-checkstyle": "^1.4.0", - "vimeo/psalm": "^4.1.1" - }, - "bin": [ - "bin/xulieta" - ], - "type": "library", - "autoload": { - "psr-4": { - "Codelicia\\Xulieta\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jefersson Nathan", - "email": "malukenho.dev@gmail.com" - }, - { - "name": "Alexandre Eher", - "email": "alexandre@eher.com.br" - } - ], - "description": "Xulieta is a light php binary that lint documentation snippets", - "homepage": "https://github.com/codelicia/xulieta", - "keywords": [ - "check documentation", - "documentation", - "linter" - ], - "support": { - "issues": "https://github.com/codelicia/xulieta/issues", - "source": "https://github.com/codelicia/xulieta/tree/0.1.6" - }, - "funding": [ - { - "url": "https://github.com/EHER", - "type": "github" - }, - { - "url": "https://github.com/malukenho", - "type": "github" - } - ], - "time": "2021-01-07T07:51:09+00:00" - }, { "name": "composer/package-versions-deprecated", "version": "1.11.99.2", @@ -900,100 +752,6 @@ }, "time": "2021-04-12T15:11:14+00:00" }, - { - "name": "doctrine/event-manager", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/event-manager.git", - "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/event-manager/zipball/41370af6a30faa9dc0368c4a6814d596e81aba7f", - "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/common": "<2.9@dev" - }, - "require-dev": { - "doctrine/coding-standard": "^6.0", - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Common\\": "lib/Doctrine/Common" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - }, - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com" - } - ], - "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", - "homepage": "https://www.doctrine-project.org/projects/event-manager.html", - "keywords": [ - "event", - "event dispatcher", - "event manager", - "event system", - "events" - ], - "support": { - "issues": "https://github.com/doctrine/event-manager/issues", - "source": "https://github.com/doctrine/event-manager/tree/1.1.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%2Fevent-manager", - "type": "tidelift" - } - ], - "time": "2020-05-29T18:28:51+00:00" - }, { "name": "doctrine/instantiator", "version": "1.4.0", @@ -1143,74 +901,6 @@ ], "time": "2020-05-25T17:44:05+00:00" }, - { - "name": "doctrine/rst-parser", - "version": "0.1.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/rst-parser.git", - "reference": "26190b50a57eda961f5a9678350aa8c82dbdfd0a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/rst-parser/zipball/26190b50a57eda961f5a9678350aa8c82dbdfd0a", - "reference": "26190b50a57eda961f5a9678350aa8c82dbdfd0a", - "shasum": "" - }, - "require": { - "doctrine/event-manager": "^1.0", - "php": "^7.1 || ^8.0", - "symfony/filesystem": "^4.1", - "symfony/finder": "^4.1 || ^5.0", - "twig/twig": "^2.5" - }, - "require-dev": { - "doctrine/coding-standard": "^8.0", - "gajus/dindent": "^2.0.2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-deprecation-rules": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpstan/phpstan-strict-rules": "^0.12", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\RST\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "GrΓ©goire Passault", - "email": "g.passault@gmail.com", - "homepage": "http://www.gregwar.com/" - }, - { - "name": "Jonathan H. Wage", - "email": "jonwage@gmail.com", - "homepage": "https://jwage.com" - } - ], - "description": "PHP library to parse reStructuredText documents and generate HTML or LaTeX documents.", - "homepage": "https://github.com/doctrine/rst-parser", - "keywords": [ - "html", - "latex", - "markup", - "parser", - "reStructuredText", - "rst" - ], - "support": { - "issues": "https://github.com/doctrine/rst-parser/issues", - "source": "https://github.com/doctrine/rst-parser/tree/0.1.1" - }, - "time": "2020-11-21T16:42:36+00:00" - }, { "name": "felixfbecker/advanced-json-rpc", "version": "v3.2.1", @@ -4403,85 +4093,6 @@ }, "time": "2021-04-09T00:54:41+00:00" }, - { - "name": "symfony/config", - "version": "v5.3.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/config.git", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/a69e0c55528b47df88d3c4067ddedf32d485d662", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662", - "shasum": "" - }, - "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/filesystem": "^4.4|^5.0", - "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-php80": "^1.15", - "symfony/polyfill-php81": "^1.22" - }, - "conflict": { - "symfony/finder": "<4.4" - }, - "require-dev": { - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/finder": "^4.4|^5.0", - "symfony/messenger": "^4.4|^5.0", - "symfony/service-contracts": "^1.1|^2", - "symfony/yaml": "^4.4|^5.0" - }, - "suggest": { - "symfony/yaml": "To use the yaml reference dumper" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Config\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/config/tree/v5.3.3" - }, - "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": "2021-06-24T08:13:00+00:00" - }, { "name": "symfony/console", "version": "v5.3.2", @@ -5169,82 +4780,6 @@ ], "time": "2021-11-30T18:21:41+00:00" }, - { - "name": "symfony/polyfill-php72", - "version": "v1.24.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "9a142215a36a3888e30d0a9eeea9766764e96976" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9a142215a36a3888e30d0a9eeea9766764e96976", - "reference": "9a142215a36a3888e30d0a9eeea9766764e96976", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.24.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": "2021-05-27T09:17:38+00:00" - }, { "name": "symfony/polyfill-php73", "version": "v1.23.0", @@ -5407,85 +4942,6 @@ ], "time": "2021-02-19T12:13:01+00:00" }, - { - "name": "symfony/polyfill-php81", - "version": "v1.23.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "e66119f3de95efc359483f810c4c3e6436279436" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436", - "reference": "e66119f3de95efc359483f810c4c3e6436279436", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" - }, - "files": [ - "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.23.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": "2021-05-21T13:25:03+00:00" - }, { "name": "symfony/process", "version": "v5.3.2", @@ -5899,86 +5355,6 @@ ], "time": "2020-07-12T23:59:07+00:00" }, - { - "name": "twig/twig", - "version": "v2.14.11", - "source": { - "type": "git", - "url": "https://github.com/twigphp/Twig.git", - "reference": "66baa66f29ee30e487e05f1679903e36eb01d727" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/66baa66f29ee30e487e05f1679903e36eb01d727", - "reference": "66baa66f29ee30e487e05f1679903e36eb01d727", - "shasum": "" - }, - "require": { - "php": ">=7.1.3", - "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-mbstring": "^1.3", - "symfony/polyfill-php72": "^1.8" - }, - "require-dev": { - "psr/container": "^1.0", - "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.14-dev" - } - }, - "autoload": { - "psr-0": { - "Twig_": "lib/" - }, - "psr-4": { - "Twig\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com", - "homepage": "http://fabien.potencier.org", - "role": "Lead Developer" - }, - { - "name": "Twig Team", - "role": "Contributors" - }, - { - "name": "Armin Ronacher", - "email": "armin.ronacher@active-4.com", - "role": "Project Founder" - } - ], - "description": "Twig, the flexible, fast, and secure template language for PHP", - "homepage": "https://twig.symfony.com", - "keywords": [ - "templating" - ], - "support": { - "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.14.11" - }, - "funding": [ - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/twig/twig", - "type": "tidelift" - } - ], - "time": "2022-02-04T06:57:25+00:00" - }, { "name": "vimeo/psalm", "version": "4.8.1", @@ -6205,5 +5581,5 @@ "platform-dev": { "ext-phar": "*" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } From d0cc94ae75807778a1eb1a6bf1470aa122855b7a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 31 Oct 2022 12:24:03 +0000 Subject: [PATCH 3/8] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..7a6b1283 --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>Ocramius/.github:renovate-config" + ] +} From 9ddd73b543c6f59861e316c41fba01193bbb7b46 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Mon, 31 Oct 2022 13:29:32 +0100 Subject: [PATCH 4/8] Enable installation of PHPCS plugins that setup CS rulesets --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 279f735c..862dd28e 100644 --- a/composer.json +++ b/composer.json @@ -57,6 +57,10 @@ } }, "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true, + "infection/extension-installer": false + }, "sort-packages": true } } From 5c4497c1962c81cbdea30f27ef7e4d70b8c6b067 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 31 Oct 2022 12:40:55 +0000 Subject: [PATCH 5/8] Update actions/cache action to v3 | datasource | package | from | to | | ----------- | ------------- | ---- | -- | | github-tags | actions/cache | v2 | v3 | | github-tags | actions/cache | v2 | v3 | | github-tags | actions/cache | v2 | v3 | | github-tags | actions/cache | v2 | v3 | | github-tags | actions/cache | v2 | v3 | | github-tags | actions/cache | v2 | v3 | --- .github/workflows/benchmarks.yml | 2 +- .github/workflows/coding-standards.yml | 2 +- .github/workflows/demo-scripts.yml | 2 +- .github/workflows/mutation-tests.yml | 2 +- .github/workflows/phpunit.yml | 2 +- .github/workflows/psalm.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b44b2f19..75749c4f 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -32,7 +32,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index c28008ce..cb3fdbae 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -32,7 +32,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache diff --git a/.github/workflows/demo-scripts.yml b/.github/workflows/demo-scripts.yml index 175ec19e..77552d89 100644 --- a/.github/workflows/demo-scripts.yml +++ b/.github/workflows/demo-scripts.yml @@ -32,7 +32,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index aef97966..2f881612 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -32,7 +32,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index cbb61770..f0df6ad3 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -38,7 +38,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 138ccdc8..2605ec58 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -32,7 +32,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: | ~/.composer/cache From 9966eec7b86bad78922e87ab498aeeadbd63a3e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 31 Oct 2022 12:41:02 +0000 Subject: [PATCH 6/8] Update actions/checkout action to v3 | datasource | package | from | to | | ----------- | ---------------- | ---- | -- | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | | github-tags | actions/checkout | v2 | v3 | --- .github/workflows/benchmarks.yml | 2 +- .github/workflows/coding-standards.yml | 2 +- .github/workflows/demo-scripts.yml | 2 +- .github/workflows/mutation-tests.yml | 2 +- .github/workflows/phpunit.yml | 2 +- .github/workflows/psalm.yml | 2 +- .github/workflows/release-on-milestone-closed.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b44b2f19..967a91c4 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -21,7 +21,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index c28008ce..0a1921df 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -21,7 +21,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/demo-scripts.yml b/.github/workflows/demo-scripts.yml index 175ec19e..961ab867 100644 --- a/.github/workflows/demo-scripts.yml +++ b/.github/workflows/demo-scripts.yml @@ -21,7 +21,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index aef97966..78853b83 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -21,7 +21,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index cbb61770..f1f35f6e 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -27,7 +27,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 138ccdc8..4103fd88 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -21,7 +21,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" diff --git a/.github/workflows/release-on-milestone-closed.yml b/.github/workflows/release-on-milestone-closed.yml index 9d8f7ebd..caec7560 100644 --- a/.github/workflows/release-on-milestone-closed.yml +++ b/.github/workflows/release-on-milestone-closed.yml @@ -14,7 +14,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Release" uses: "laminas/automatic-releases@v1" From fc014f694bfa12791dad3cbd6d902f75af9cef25 Mon Sep 17 00:00:00 2001 From: Lars Strojny Date: Fri, 17 Mar 2023 11:35:46 +0100 Subject: [PATCH 7/8] Make property private in final class --- src/ProxyManager/Inflector/ClassNameInflector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProxyManager/Inflector/ClassNameInflector.php b/src/ProxyManager/Inflector/ClassNameInflector.php index e56a9774..84e22d15 100644 --- a/src/ProxyManager/Inflector/ClassNameInflector.php +++ b/src/ProxyManager/Inflector/ClassNameInflector.php @@ -19,7 +19,7 @@ final class ClassNameInflector implements ClassNameInflectorInterface private string $proxyMarker; private ParameterHasher $parameterHasher; - public function __construct(protected string $proxyNamespace) + public function __construct(private string $proxyNamespace) { $this->proxyMarker = '\\' . self::PROXY_MARKER . '\\'; $this->proxyMarkerLength = strlen($this->proxyMarker); From 3ca65b8edb8d96b46fedc9bb4911396516347129 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 16 May 2023 15:15:01 +0200 Subject: [PATCH 8/8] Fix generating proxies for arguments promoted as properties --- src/ProxyManager/Generator/MethodGenerator.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/ProxyManager/Generator/MethodGenerator.php b/src/ProxyManager/Generator/MethodGenerator.php index a259b9c8..3c612144 100644 --- a/src/ProxyManager/Generator/MethodGenerator.php +++ b/src/ProxyManager/Generator/MethodGenerator.php @@ -6,6 +6,7 @@ use Laminas\Code\Generator\DocBlockGenerator; use Laminas\Code\Generator\MethodGenerator as LaminasMethodGenerator; +use Laminas\Code\Generator\ParameterGenerator; use Laminas\Code\Reflection\MethodReflection; use ReflectionException; use ReflectionMethod; @@ -23,7 +24,7 @@ class MethodGenerator extends LaminasMethodGenerator public static function fromReflectionWithoutBodyAndDocBlock(MethodReflection $reflectionMethod): self { /** @var static $method */ - $method = parent::copyMethodSignature($reflectionMethod); + $method = static::copyMethodSignature($reflectionMethod); $method->setInterface(false); $method->setBody(''); @@ -55,6 +56,19 @@ public static function fromReflectionWithoutBodyAndDocBlock(MethodReflection $re return $method; } + public static function copyMethodSignature(MethodReflection $reflectionMethod): parent + { + $method = parent::copyMethodSignature($reflectionMethod); + + foreach ($reflectionMethod->getParameters() as $reflectionParameter) { + $method->setParameter( + ParameterGenerator::fromReflection($reflectionParameter) + ); + } + + return $method; + } + public function getDocBlock(): ?DocBlockGenerator { $docBlock = parent::getDocBlock();