Fix minor version parsing in InfoParserUnitTest.php

Created on 9 June 2023, over 1 year ago
Updated 19 June 2023, over 1 year ago

Problem/Motivation

Follow-up to #3134417-78: Add \Drupal::getMajorVersion() β†’

Running core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php on PHP 8

PHP Warning:  A non-numeric value encountered in /var/www/html/web/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php on line 301

Warning: A non-numeric value encountered in /var/www/html/web/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php on line 301
PHPUnit 9.6.8 by Sebastian Bergmann and contributors.

Testing Drupal\Tests\Core\Extension\InfoParserUnitTest

Proposed resolution

Explode string on 2 parts and cast leftover part to int to remove stability suffix

Remaining tasks

review/commit

User interface changes

None.

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 1 day ago

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
  • Quick fix

    Very small and simple change. Preferred over Quickfix.

  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024