Skip to content

Commit cf30872

Browse files
authored
Merge pull request #95 from fezfez/update-deps
Allow php 8.3 and update deps
2 parents 548495e + d86ce57 commit cf30872

File tree

7 files changed

+397
-510
lines changed

7 files changed

+397
-510
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Gather CI configuration
1818
id: matrix
19-
uses: laminas/laminas-ci-matrix-action@1.22.1
19+
uses: laminas/laminas-ci-matrix-action@1.24.0
2020

2121
qa:
2222
name: QA Checks
@@ -27,7 +27,7 @@ jobs:
2727
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
2828
steps:
2929
- name: ${{ matrix.name }}
30-
uses: laminas/laminas-continuous-integration-action@1.32.0
30+
uses: laminas/laminas-continuous-integration-action@1.35.0
3131
env:
3232
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
3333
"INFECTION_DASHBOARD_API_KEY": ${{ secrets.INFECTION_DASHBOARD_API_KEY }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/vendor
2+
.phpunit.cache
3+
.phpunit.result.cache

.laminas-ci.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"exclude": [
3+
{
4+
"name": "Infection [8.1, locked]"
5+
}
6+
]
7+
}

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
This library is a [PHPStan](https://github.com/phpstan/phpstan) plugin
99
that disallows:
1010

11-
* declaration of `float` properties
12-
* `float` method parameters
13-
* `float` method return types
14-
* assignment of `float` values to variables or properties
11+
* declaration of `float` properties
12+
* `float` method parameters
13+
* `float` method return types
14+
* assignment of `float` values to variables or properties
1515

1616
The reason for this restriction is that rounding errors coming
1717
from floating point arithmetic operations are not acceptable in
@@ -46,7 +46,7 @@ In your `phpstan.neon` configuration, add following section:
4646

4747
```neon
4848
includes:
49-
- vendor/roave/no-floaters/rules.neon
49+
- vendor/roave/no-floaters/rules.neon
5050
```
5151

5252
Optionally, you can configure the library to disallow any
@@ -55,7 +55,7 @@ Optionally, you can configure the library to disallow any
5555

5656
```neon
5757
parameters:
58-
disallowFloatsEverywhere: true
58+
disallowFloatsEverywhere: true
5959
```
6060

6161
If the above is enabled, given the following `example-file.php`
@@ -69,7 +69,7 @@ $a = 1 / 3;
6969

7070
You should get something like following:
7171

72-
```
72+
```cli
7373
vendor/bin/phpstan analyse example-file.php -l 7
7474
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
7575
@@ -83,12 +83,12 @@ vendor/bin/phpstan analyse example-file.php -l 7
8383
[ERROR] Found 1 error
8484
8585
```
86+
8687
## roave/no-floaters for enterprise
8788

8889
Available as part of the Tidelift Subscription.
8990

9091
The maintainers of roave/no-floaters and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-roave-no-floaters?utm_source=packagist-roave-no-floaters&utm_medium=referral&utm_campaign=enterprise&utm_term=repo).
9192

92-
9393
If you need help with setting up this library in your project,
94-
you can contact us at team@roave.com for consulting/support.
94+
you can contact us at <team@roave.com> for consulting/support.

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"MIT"
66
],
77
"require": {
8-
"php": "~8.1.0 || ~8.2.0",
9-
"nikic/php-parser": "^4.16.0",
10-
"phpstan/phpstan": "^1.10.25"
8+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
9+
"nikic/php-parser": "^4.17.1",
10+
"phpstan/phpstan": "^1.10.34"
1111
},
1212
"require-dev": {
13-
"doctrine/coding-standard": "^11.1.0",
14-
"infection/infection": "^0.27.0",
15-
"maglnet/composer-require-checker": "^4.6.0",
16-
"phpstan/phpstan-phpunit": "^1.3.13",
13+
"doctrine/coding-standard": "^12.0.0",
14+
"infection/infection": "^0.27.2",
15+
"maglnet/composer-require-checker": "^4.7",
16+
"phpstan/phpstan-phpunit": "^1.3.14",
1717
"phpstan/phpstan-strict-rules": "^1.5.1",
18-
"phpunit/phpunit": "^9.6.10",
18+
"phpunit/phpunit": "^10.3.5",
1919
"squizlabs/php_codesniffer": "^3.7.2"
2020
},
2121
"autoload": {

0 commit comments

Comments
 (0)