Skip to content

Commit

Permalink
Merge pull request #9 from Laragear/feat/php-8.0
Browse files Browse the repository at this point in the history
[2.x] Restores PHP 8.0 compatibility
  • Loading branch information
DarkGhostHunter authored Feb 22, 2023
2 parents b907299 + 15cebfb commit 0b63ff7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"
laravel-constrain:
Expand All @@ -58,6 +59,9 @@ jobs:
dependencies:
- "lowest"
- "highest"
exclude:
- laravel-constrain: "10.*"
php-version: "8.0"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
Expand All @@ -78,7 +82,7 @@ jobs:
run: "composer run-script test"

- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v2"
uses: "codecov/codecov-action@v3"

static_analysis:
name: "3️⃣ Static Analysis"
Expand All @@ -92,6 +96,7 @@ jobs:
with:
tools: "phpstan"
php-version: "latest"
coverage: "none"

- name: "Checkout code"
uses: "actions/checkout@v3"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"issues": "https://github.com/laragear/poke/issues"
},
"require": {
"php": "^8.1",
"laragear/meta": "2.*",
"php": "8.*",
"laragear/meta": "^2.0.2",
"illuminate/http": "9.*|10.*",
"illuminate/routing": "9.*|10.*",
"illuminate/support": "9.*|10.*",
Expand Down
2 changes: 1 addition & 1 deletion src/Blade/Components/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Script extends Component
*
* @param bool $force
*/
public function __construct(protected readonly bool $force = false)
public function __construct(protected bool $force = false)
{
//
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/InjectScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class InjectScript
*
* @param string $mode
*/
public function __construct(protected readonly string $mode)
public function __construct(protected string $mode)
{
//
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/RouteConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RouteConstructor
* @param \Illuminate\Routing\Router $router
* @param \Illuminate\Contracts\Config\Repository $config
*/
public function __construct(protected readonly Router $router, protected readonly ConfigContract $config)
public function __construct(protected Router $router, protected ConfigContract $config)
{
//
}
Expand Down

0 comments on commit 0b63ff7

Please sign in to comment.