Created on 2 November 2023, about 1 year ago

Problem/Motivation

Current version shows deprecation notices under PHP 8.2

Proposed resolution

Run Rector up to PHP 8.2

โœจ Feature request
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States vinmassaro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @vinmassaro
  • Merge request !6Resolve #3398815 "Php 8.2 support" โ†’ (Open) created by vinmassaro
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    5 pass
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States vinmassaro
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    5 pass
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    5 pass
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States dblanken Carmel, Indiana

    Using the patch has stopped deprecation warnings on my local instances when using PHP 8.2. Nice work!

  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.x + Environment: PHP 8.2 & MySQL 8
    last update about 1 year ago
    Composer require failure
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8 (--ignore-platfrom-reqs)
    last update about 1 year ago
    5 pass
  • Status changed to RTBC about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States njim

    I can confirm that typogrify on PHP 8.2 has deprecation warnings. I tested this patch on a fresh site install running PHP 8.2.

    • All of the warning have disappeared.
    • Reviewing code - all changes are consistant with other recent deprecation fixes.
    • I functionally tested that Typogrify is replacing my hyphens with m-dashes as expected.
    • Local tests are passing.
    • Added automated test on this merge request for PHP8.2/MySQL8/D10.1 and the change passes.

    This all looks good to me. Indicating this is reviewed and tested by community.

  • ๐Ÿ‡ฎ๐Ÿ‡ชIreland lostcarpark

    Tested on 8.2 and it made the deprecation warnings go away.

    Thanks!

  • ๐Ÿ‡ฎ๐Ÿ‡ชIreland lostcarpark

    Typogrify 1.3 seems to include this change, apart from the change to src/Plugin/Filter/TypogrifyFilter.php, which is handled slightly differently.

    It doesn't seem to be mentioned in the release notes, and the MR is still open, but I think this issue can be marked Fixed.

  • ๐Ÿ‡จ๐Ÿ‡ฟCzech Republic my-family

    In Typogrify 1.2 as well as 1.3 our watchdog is still being overwhelmed with the messages:

    "Deprecated function: Use of "static" in callables is deprecated in Drupal\typogrify\Typogrify::initialQuotes() (line 168 of (...)/web/modules/contrib/typogrify/src/Typogrify.php) "

    Drupal version 10.1.5, PHP 8.2.7

  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States benjifisher Boston area

    I think just the second commit in MR !6 will fix the deprecation notices mentioned in #8. I prefer a simpler MR that fixes actual problems.

    In the long term, I would like to replace all of these files (unchanged from the 7.x version of this module) with packages imported using Composer. Let someone else maintain them and then I just have to maintain the Drupal code.

    Since that is the long-term plan, I do not want to make changes to those files unless they fix actual problems.

    One of the changes does not apply to Typogrify 1.3. That is one reason to avoid large MRs with changes that are not essential. Back to NW.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States benjifisher Boston area

    I enabled GitLab CI for testing in ๐Ÿ“Œ Move automated tests to GitLab CI Fixed . That should make it easier to confirm what I said about PHPStan.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada ambient.impact Toronto

    ambient.impact โ†’ made their first commit to this issueโ€™s fork.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada ambient.impact Toronto

    I merged in the latest 8.x-1.x changes, i.e. up to 8.x-1.4-rc1 ;)

  • Pipeline finished with Success
    5 months ago
    Total: 407s
    #284877
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States benjifisher Boston area

    @joachim: Thanks for checking.

    @ambient.impact: Thanks for updating the MR. But what I really want is a simpler MR, as I said in Comment #9.

    I am leaving the status at NW.

Production build 0.71.5 2024