Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Prepare towards PHP8.4 compatibility #572

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Conversation

sbuerk
Copy link

@sbuerk sbuerk commented Jul 26, 2024

This pull-request contains three commits:

chore: fix latest php-cs-fixer findings

This ensures clean cgl state using the current php-cs-fixer version and ruleset.

chore: Mitigate PHP8.4 deprecation warnings (#570)

This change replaces implicitly nullable method arguments by making them explicitly nullable to mitigate PHP8.4 deprecation warnings.

chore: Enable php-cs-fixer rules to avoid implicitly nullable method arguments

This change enables two rules in the php-cs-fixer ruleset to guard against future implicitly method arguments and ensures to use the ? nullable operator for nullable methods and properties.

BEGIN_COMMIT_OVERRIDE
chore: fix latest php-cs-fixer findings
fix: Mitigate PHP8.4 deprecation warnings (#570)
chore: Enable php-cs-fixer rules to avoid implicitly nullable method arguments
END_COMMIT_OVERRIDE

Resolves: #570

@bshaffer bshaffer merged commit 76808fa into firebase:main Aug 7, 2024
7 checks passed
@crynobone
Copy link

@bshaffer Can we have this release ASAP (as PHP 8.4 has been released)

ruudk added a commit to ruudk/php-jwt that referenced this pull request Nov 24, 2024
Adds PHP 8.4 to the CI matrix.

See firebase#572 and firebase#578
@ruudk ruudk mentioned this pull request Nov 24, 2024
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull request Nov 24, 2024
TYPO3 monorepo used a composer patch based on [1]
for the `firebase/php-jwt` package to resolve the
one or other PHP 8.4 issue to allow testing TYPO3
against PHP 8.4. The pull-request has been merged
already months ago and a release has been finally
made [2].

This change removes the composer patch introduced
with #104578 and updates the package version to
ensure having required fixes on board even for
classic mode installations.

Used command(s):

> composer remove --dev "cweagans/composer-patches"
> composer config --no-plugins --no-interaction \
    --unset allow-plugins.cweagans/composer-patches
> composer config --no-plugins --no-interaction \
    --unset extra.composer-exit-on-patch-failure
> composer config --no-plugins --no-interaction \
    --unset extra.patches-file
> composer require -d typo3/sysext/core --no-update \
    "firebase/php-jwt":"^6.10.2"
> composer require "firebase/php-jwt":"^6.10.2"
> rm -rf Build/patches

[1] firebase/php-jwt#572
[2] https://github.com/firebase/php-jwt/releases/tag/v6.10.2

Resolves: #105689
Related: #104578
Releases: main, 13.4
Change-Id: I6af68aaacabae9e64f2eecef75a5169943d738d8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87218
Tested-by: core-ci <[email protected]>
Tested-by: Markus Hofmann <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Garvin Hicking <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Reviewed-by: Garvin Hicking <[email protected]>
Reviewed-by: Markus Hofmann <[email protected]>
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull request Nov 24, 2024
TYPO3 monorepo used a composer patch based on [1]
for the `firebase/php-jwt` package to resolve the
one or other PHP 8.4 issue to allow testing TYPO3
against PHP 8.4. The pull-request has been merged
already months ago and a release has been finally
made [2].

This change removes the composer patch introduced
with #104578 and updates the package version to
ensure having required fixes on board even for
classic mode installations.

Used command(s):

> composer remove --dev "cweagans/composer-patches"
> composer config --no-plugins --no-interaction \
    --unset allow-plugins.cweagans/composer-patches
> composer config --no-plugins --no-interaction \
    --unset extra.composer-exit-on-patch-failure
> composer config --no-plugins --no-interaction \
    --unset extra.patches-file
> composer require -d typo3/sysext/core --no-update \
    "firebase/php-jwt":"^6.10.2"
> composer require "firebase/php-jwt":"^6.10.2"
> rm -rf Build/patches

[1] firebase/php-jwt#572
[2] https://github.com/firebase/php-jwt/releases/tag/v6.10.2

Resolves: #105689
Related: #104578
Releases: main, 13.4
Change-Id: I6af68aaacabae9e64f2eecef75a5169943d738d8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87219
Tested-by: core-ci <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
TYPO3IncTeam pushed a commit to TYPO3-CMS/core that referenced this pull request Nov 24, 2024
TYPO3 monorepo used a composer patch based on [1]
for the `firebase/php-jwt` package to resolve the
one or other PHP 8.4 issue to allow testing TYPO3
against PHP 8.4. The pull-request has been merged
already months ago and a release has been finally
made [2].

This change removes the composer patch introduced
with #104578 and updates the package version to
ensure having required fixes on board even for
classic mode installations.

Used command(s):

> composer remove --dev "cweagans/composer-patches"
> composer config --no-plugins --no-interaction \
    --unset allow-plugins.cweagans/composer-patches
> composer config --no-plugins --no-interaction \
    --unset extra.composer-exit-on-patch-failure
> composer config --no-plugins --no-interaction \
    --unset extra.patches-file
> composer require -d typo3/sysext/core --no-update \
    "firebase/php-jwt":"^6.10.2"
> composer require "firebase/php-jwt":"^6.10.2"
> rm -rf Build/patches

[1] firebase/php-jwt#572
[2] https://github.com/firebase/php-jwt/releases/tag/v6.10.2

Resolves: #105689
Related: #104578
Releases: main, 13.4
Change-Id: I6af68aaacabae9e64f2eecef75a5169943d738d8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87218
Tested-by: core-ci <[email protected]>
Tested-by: Markus Hofmann <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Garvin Hicking <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Reviewed-by: Garvin Hicking <[email protected]>
Reviewed-by: Markus Hofmann <[email protected]>
TYPO3IncTeam pushed a commit to TYPO3-CMS/core that referenced this pull request Nov 24, 2024
TYPO3 monorepo used a composer patch based on [1]
for the `firebase/php-jwt` package to resolve the
one or other PHP 8.4 issue to allow testing TYPO3
against PHP 8.4. The pull-request has been merged
already months ago and a release has been finally
made [2].

This change removes the composer patch introduced
with #104578 and updates the package version to
ensure having required fixes on board even for
classic mode installations.

Used command(s):

> composer remove --dev "cweagans/composer-patches"
> composer config --no-plugins --no-interaction \
    --unset allow-plugins.cweagans/composer-patches
> composer config --no-plugins --no-interaction \
    --unset extra.composer-exit-on-patch-failure
> composer config --no-plugins --no-interaction \
    --unset extra.patches-file
> composer require -d typo3/sysext/core --no-update \
    "firebase/php-jwt":"^6.10.2"
> composer require "firebase/php-jwt":"^6.10.2"
> rm -rf Build/patches

[1] firebase/php-jwt#572
[2] https://github.com/firebase/php-jwt/releases/tag/v6.10.2

Resolves: #105689
Related: #104578
Releases: main, 13.4
Change-Id: I6af68aaacabae9e64f2eecef75a5169943d738d8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87219
Tested-by: core-ci <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warnings on PHP 8.4
4 participants