Skip to content

Commit

Permalink
Merge pull request #350 from netglue/deps
Browse files Browse the repository at this point in the history
Drop support for PHP 8.1
  • Loading branch information
gsteel authored Feb 14, 2024
2 parents cdbbe5a + 6fa486f commit 27ce4e3
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 231 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/test/ export-ignore
.psr-container.php.stub export-ignore
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.29.0
with:
php-version: 8.1
php-version: 8.2
extensions: pcov
coverage: pcov
ini-values: pcov.enabled=1
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.29.0
with:
php-version: 8.1
php-version: 8.2
- uses: "ramsey/composer-install@2.2.0"
with:
dependency-versions: "highest"
Expand Down
24 changes: 24 additions & 0 deletions .psr-container.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace Psr\Container {
/**
* Provides automatic type inference for Psalm when retrieving a service from a container using a FQCN
*/
interface ContainerInterface
{
/**
* @param string|class-string $id
* @return bool
*/
public function has(string $id);

/**
* @template T
* @psalm-param string|class-string<T> $id
* @psalm-return ($id is class-string ? T : mixed)
*/
public function get(string $id);
}
}
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php-http/discovery": false
},
"platform": {
"php": "8.1.99"
"php": "8.2.99"
}
},
"autoload": {
Expand All @@ -33,7 +33,7 @@
}
},
"require": {
"php": "~8.1 || ~8.2 || ~8.3",
"php": "~8.2 || ~8.3",
"ext-json": "*",
"netglue/prismic-client": "^1.0.0",
"netglue/prismic-doctype-client": "^1.0.0",
Expand All @@ -43,8 +43,8 @@
"psr/http-client-implementation": "*",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"sebastian/diff": "^4.0 || ^5.0",
"symfony/console": "^5.3.7 || ^6.0.0 || ^7.0.0",
"sebastian/diff": "^5.0 || ^6.0",
"symfony/console": "^6.0.0 || ^7.0.0",
"webmozart/assert": "^1.10"
},
"require-dev": {
Expand All @@ -53,13 +53,12 @@
"laminas/laminas-config-aggregator": "^1.14",
"laminas/laminas-diactoros": "^3.3.0",
"laminas/laminas-servicemanager": "^3.22.1",
"lctrs/psalm-psr-container-plugin": "^1.10",
"php-http/curl-client": "^2.3.1",
"phpunit/phpunit": "^10.5.9",
"phpunit/phpunit": "^10.5.10",
"psalm/plugin-phpunit": "^0.18.4",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.8.1",
"vimeo/psalm": "^5.20.0"
"vimeo/psalm": "^5.22.0"
},
"extra": {
"laminas": {
Expand Down
Loading

0 comments on commit 27ce4e3

Please sign in to comment.