Skip to content

Commit

Permalink
Fix: Drop support for outdated PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 5, 2022
1 parent 318450f commit 4331eea
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-alias.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
coverage: none

- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
php-version:
- 7.1
- 8.0

steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
php-version: [7.4]
php-version: [8.0]

steps:
- name: Checkout code
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

strategy:
matrix:
php-version: [7.4]
php-version: [8.0]

steps:
- name: Checkout
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Expand Up @@ -18,15 +18,11 @@ jobs:
operating-system:
- 'ubuntu-latest'
php-version:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
include:
- operating-system: 'windows-latest'
php-version: '7.1'
php-version: '8.0'

runs-on: ${{ matrix.operating-system }}

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

## [Unreleased](https://github.com/FakerPHP/Faker/compare/v1.20.0...main)

- Dropped support for outdated PHP versions (#543)

## [2022-07-20, v1.20.0](https://github.com/FakerPHP/Faker/compare/v1.19.0..v1.20.0)

- Fixed typo in French phone number (#452)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -15,7 +15,7 @@ It's heavily inspired by Perl's [Data::Faker](https://metacpan.org/pod/Data::Fak

### Installation

Faker requires PHP >= 7.1.
Faker requires PHP >= 8.0.

```shell
composer require fakerphp/faker
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.1 || ^8.0",
"php": "^8.0",
"psr/container": "^1.0 || ^2.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0"
},
Expand Down
16 changes: 8 additions & 8 deletions phpstan-baseline.neon
@@ -1,7 +1,7 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Faker/Calculator/Iban.php

Expand Down Expand Up @@ -635,7 +635,7 @@ parameters:
path: src/Faker/Provider/Base.php

-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/Base.php

Expand Down Expand Up @@ -665,12 +665,12 @@ parameters:
path: src/Faker/Provider/File.php

-
message: "#^Parameter \\#1 \\$str of function md5 expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function md5 expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/Miscellaneous.php

-
message: "#^Parameter \\#1 \\$str of function sha1 expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function sha1 expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/Miscellaneous.php

Expand Down Expand Up @@ -705,7 +705,7 @@ parameters:
path: src/Faker/Provider/cs_CZ/Person.php

-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/en_ZA/Person.php

Expand Down Expand Up @@ -780,7 +780,7 @@ parameters:
path: src/Faker/Provider/ro_RO/Person.php

-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/ru_RU/Company.php

Expand All @@ -790,7 +790,7 @@ parameters:
path: src/Faker/Provider/sl_SI/Person.php

-
message: "#^Parameter \\#1 \\$input of function str_pad expects string, int given\\.$#"
message: "#^Parameter \\#1 \\$string of function str_pad expects string, int given\\.$#"
count: 1
path: src/Faker/Provider/zh_CN/Address.php

Expand All @@ -800,7 +800,7 @@ parameters:
path: src/Faker/Provider/zh_CN/Address.php

-
message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, Closure\\(mixed\\)\\: bool given\\.$#"
message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, Closure\\(mixed\\)\\: bool given\\.$#"
count: 1
path: src/autoload.php

0 comments on commit 4331eea

Please sign in to comment.