Skip to content

Commit

Permalink
Update dependencies and requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgilles committed Aug 1, 2024
1 parent dd34b6a commit 8daecd7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
composer.lock
auth.json
.phpunit.result.cache
.phpunit.cache

# IDE Stuff
/.fleet
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@
],
"require": {
"php": ">=8.1",
"illuminate/support": "^8.0 || ^9.0 || ^10.0",
"illuminate/database": "^8.0 || ^9.0 || ^10.0"
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"illuminate/database": "^8.0 || ^9.0 || ^10.0 || ^11.0"
},
"require-dev": {
"orchestra/testbench": "^8.0",
"laravel/pint": "^1.10",
"pestphp/pest": "^1.10",
"phpunit/phpunit": "^9.0|^10.0"
"orchestra/testbench": "^9.0",
"laravel/pint": "^1.17.0",
"pestphp/pest": "^2.34.9"
},
"autoload": {
"psr-4": {
Expand Down
26 changes: 11 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/LaravelMetaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LaravelMetaServiceProvider extends ServiceProvider
public function register()
{
$this->app->singleton(CurrentModelService::class, function () {
return new CurrentModelService();
return new CurrentModelService;
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/ModelConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ public function setCallbackOgImageUrl(callable $callback): static

public static function make()
{
return new static();
return new static;
}
}

0 comments on commit 8daecd7

Please sign in to comment.