Skip to content

Commit

Permalink
Merge pull request #48 from MauricioFauth/php82
Browse files Browse the repository at this point in the history
Bump minimum PHP version to 8.2.0
  • Loading branch information
MauricioFauth committed Aug 1, 2024
2 parents 29ab5aa + 4e7dbba commit afbfffe
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-analyse-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up PHP 8.1
- name: Set up PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '8.1' ]
php-version: [ '8.2' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php-version: ['8.1', '8.2', '8.3']
php-version: ['8.2', '8.3']
extensions: [':apcu, mbstring', 'apcu, mbstring']
os: [ubuntu-latest]
experimental: [false]
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:
nodes:
analysis:
environment:
php: 8.1
php: 8.2
dependencies:
before:
- composer install
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

* Drop support for PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0.
* Drop support for PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0 and PHP 8.1.

## [5.3.1] - 2023-08-23

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]
},
"require": {
"php": "^8.1",
"php": "^8.2",
"symfony/expression-language": "^6.2"
},
"require-dev": {
Expand Down
26 changes: 13 additions & 13 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.20.0@3f284e96c9d9be6fe6b15c79416e1d1903dcfef4">
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505">
<file src="src/Cache/ApcuCache.php">
<MixedAssignment>
<code>$cached</code>
<code>$msgstr</code>
<code>$msgstr</code>
<code><![CDATA[$cached]]></code>
<code><![CDATA[$msgstr]]></code>
<code><![CDATA[$msgstr]]></code>
</MixedAssignment>
<RedundantConditionGivenDocblockType>
<code>assert(is_array($translations))</code>
<code>is_array($translations)</code>
<code><![CDATA[assert(is_array($translations))]]></code>
<code><![CDATA[is_array($translations)]]></code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/Loader.php">
<MixedInferredReturnType>
<code>string</code>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$GLOBALS['lang']]]></code>
</MixedReturnStatement>
</file>
<file src="src/StringReader.php">
<MixedAssignment>
<code>$result</code>
<code><![CDATA[$result]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code>int</code>
<code><![CDATA[int]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$result < 0 ? PHP_INT_MAX : $result]]></code>
<code><![CDATA[$result < 0 ? PHP_INT_MAX : $result]]></code>
</MixedReturnStatement>
<MixedReturnTypeCoercion>
<code>$data</code>
<code>int[]</code>
<code><![CDATA[$data]]></code>
<code><![CDATA[int[]]]></code>
</MixedReturnTypeCoercion>
</file>
<file src="src/Translator.php">
<MixedAssignment>
<code>$evaluatedPlural</code>
<code><![CDATA[$evaluatedPlural]]></code>
</MixedAssignment>
<PossiblyNullOperand>
<code><![CDATA[$this->pluralCount]]></code>
</PossiblyNullOperand>
<PossiblyUndefinedArrayOffset>
<code>$nplurals[1]</code>
<code><![CDATA[$nplurals[1]]]></code>
</PossiblyUndefinedArrayOffset>
</file>
</files>

0 comments on commit afbfffe

Please sign in to comment.