Skip to content

Commit

Permalink
Merge pull request #95 from fezfez/update-deps
Browse files Browse the repository at this point in the history
Allow php 8.3 and update deps
  • Loading branch information
Ocramius committed Sep 19, 2023
2 parents 548495e + d86ce57 commit cf30872
Show file tree
Hide file tree
Showing 7 changed files with 397 additions and 510 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@1.22.1
uses: laminas/laminas-ci-matrix-action@1.24.0

qa:
name: QA Checks
Expand All @@ -27,7 +27,7 @@ jobs:
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@1.32.0
uses: laminas/laminas-continuous-integration-action@1.35.0
env:
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
"INFECTION_DASHBOARD_API_KEY": ${{ secrets.INFECTION_DASHBOARD_API_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/vendor
.phpunit.cache
.phpunit.result.cache
7 changes: 7 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"exclude": [
{
"name": "Infection [8.1, locked]"
}
]
}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
This library is a [PHPStan](https://github.com/phpstan/phpstan) plugin
that disallows:

* declaration of `float` properties
* `float` method parameters
* `float` method return types
* assignment of `float` values to variables or properties
* declaration of `float` properties
* `float` method parameters
* `float` method return types
* assignment of `float` values to variables or properties

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

```neon
includes:
- vendor/roave/no-floaters/rules.neon
- vendor/roave/no-floaters/rules.neon
```

Optionally, you can configure the library to disallow any
Expand All @@ -55,7 +55,7 @@ Optionally, you can configure the library to disallow any

```neon
parameters:
disallowFloatsEverywhere: true
disallowFloatsEverywhere: true
```

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

You should get something like following:

```
```cli
vendor/bin/phpstan analyse example-file.php -l 7
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Expand All @@ -83,12 +83,12 @@ vendor/bin/phpstan analyse example-file.php -l 7
[ERROR] Found 1 error
```

## roave/no-floaters for enterprise

Available as part of the Tidelift Subscription.

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).


If you need help with setting up this library in your project,
you can contact us at [email protected] for consulting/support.
you can contact us at <[email protected]> for consulting/support.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"MIT"
],
"require": {
"php": "~8.1.0 || ~8.2.0",
"nikic/php-parser": "^4.16.0",
"phpstan/phpstan": "^1.10.25"
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"nikic/php-parser": "^4.17.1",
"phpstan/phpstan": "^1.10.34"
},
"require-dev": {
"doctrine/coding-standard": "^11.1.0",
"infection/infection": "^0.27.0",
"maglnet/composer-require-checker": "^4.6.0",
"phpstan/phpstan-phpunit": "^1.3.13",
"doctrine/coding-standard": "^12.0.0",
"infection/infection": "^0.27.2",
"maglnet/composer-require-checker": "^4.7",
"phpstan/phpstan-phpunit": "^1.3.14",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpunit/phpunit": "^9.6.10",
"phpunit/phpunit": "^10.3.5",
"squizlabs/php_codesniffer": "^3.7.2"
},
"autoload": {
Expand Down
Loading

0 comments on commit cf30872

Please sign in to comment.