Skip to content

Commit

Permalink
chore: bump dev dependencies and remove Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpoulain committed Jan 18, 2025
1 parent cc6f741 commit 32787f3
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 53 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
/infection.json export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
/psalm.xml export-ignore
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
symfony:
- '5.4.*'
- '6.4.*'
- '7.0.*'
- '7.2.*'
coverage:
- none
exclude:
- php: '8.1'
symfony: '7.0.*'
symfony: '7.2.*'
include:
- php: '8.1'
symfony: '5.4.*'
Expand All @@ -39,7 +40,7 @@ jobs:
fetch-depth: 0

- name: Check commit messages
uses: wagoid/commitlint-github-action@v5
uses: wagoid/commitlint-github-action@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -53,7 +54,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down Expand Up @@ -84,9 +85,6 @@ jobs:
- name: Check code style
run: vendor/bin/php-cs-fixer fix --ansi --diff --dry-run

- name: Analyze code (Psalm)
run: vendor/bin/psalm --php-version=${{ matrix.php }} --long-progress --output-format=github --shepherd --stats

- name: Analyze code (PHPStan)
run: vendor/bin/phpstan analyze . --ansi --no-progress --error-format=github

Expand All @@ -95,7 +93,7 @@ jobs:
run: vendor/bin/behat --colors

- name: Run unit tests
if: matrix.coverage == 'none'
if: matrix.coverage == 'none' && matrix.php != '8.1'
run: vendor/bin/phpunit --colors=always --testdox

- name: Run unit tests with coverage
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 2.2.2

* Fix PHP 8.4 deprecations (implicit nullable)

## 2.2.1

* Allow Symfony 7
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/SignerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function process(ContainerBuilder $container): void
$availableNames[] = $name;
}

throw new InvalidArgumentException(sprintf("No URL signer with the name \"%s\" found. Available names are:\n%s", $signerName, implode("\n", array_map(static function (string $availableName) { return sprintf('- "%s"', $availableName); }, $availableNames))));
throw new InvalidArgumentException(\sprintf("No URL signer with the name \"%s\" found. Available names are:\n%s", $signerName, implode("\n", array_map(static fn (string $availableName) => \sprintf('- "%s"', $availableName), $availableNames))));
}

/**
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Actions Status](https://github.com/coopTilleuls/UrlSignerBundle/workflows/CI/badge.svg)](https://github.com/coopTilleuls/UrlSignerBundle/actions)
[![Coverage Status](https://coveralls.io/repos/github/coopTilleuls/UrlSignerBundle/badge.svg?branch=main)](https://coveralls.io/github/coopTilleuls/UrlSignerBundle?branch=main)
[![Infection MSI](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FcoopTilleuls%2FUrlSignerBundle%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/coopTilleuls/UrlSignerBundle/main)
[![Type Coverage](https://shepherd.dev/github/coopTilleuls/UrlSignerBundle/coverage.svg)](https://shepherd.dev/github/coopTilleuls/UrlSignerBundle)

Create and validate signed URLs with a limited lifetime in Symfony.

Expand Down
19 changes: 8 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,17 @@
"symfony/routing": "^4.4 || ^5.1 || ^6.0 || ^7.0"
},
"require-dev": {
"behat/behat": "^3.8",
"friends-of-behat/symfony-extension": "^2.2",
"behat/behat": "^3.0",
"friends-of-behat/symfony-extension": "^2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"infection/infection": "^0.27",
"jangregor/phpstan-prophecy": "^1.0",
"infection/infection": "^0.29",
"jangregor/phpstan-prophecy": "^2.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^10.5",
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.0",
"symfony/browser-kit": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
"vimeo/psalm": "^5.8"
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0"
},
"config": {
"sort-packages": true,
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
colors="true">
<php>
Expand Down
29 changes: 0 additions & 29 deletions psalm.xml

This file was deleted.

0 comments on commit 32787f3

Please sign in to comment.