Skip to content

Commit

Permalink
Merge pull request #8 from DennisLammers/laravel-10
Browse files Browse the repository at this point in the history
feat(platform): Update for Laravel 10.
  • Loading branch information
koenhoeijmakers authored Feb 27, 2023
2 parents f6448e1 + ac4fe42 commit e996a03
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .docker/php8.1-fpm/php.ini

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "Explicit request filtering.",
"require": {
"php": ">=8.1",
"laravel/framework": "^9.0|^10.0"
"laravel/framework": "^10.0"
},
"require-dev": {
"orchestra/testbench": "^7.14",
"phpunit/phpunit": "^9.0"
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.0"
},
"type": "library",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ services:
container_name: app
volumes:
- ./:/var/www
- ./.docker/php8.1-fpm/php.ini:/usr/local/etc/php/conf.d/local.ini

volumes:
app:
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" cacheResult="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" cacheResult="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
Expand Down
9 changes: 5 additions & 4 deletions src/FilterableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FilterableServiceProvider extends ServiceProvider
*
* @return void
*/
public function register()
public function register():void
{
$this->app->bind(FilteringContract::class, Filtering::class);
}
Expand All @@ -24,14 +24,15 @@ public function register()
*
* @return void
*/
public function boot()
public function boot():void
{
$this->publishes([
$this->packageRootPath('config/filterable.php') => config_path('filterable.php'),
]);

$this->mergeConfigFrom(
$this->packageRootPath('config/filterable.php'), 'filterable'
$this->packageRootPath('config/filterable.php'),
'filterable'
);
}

Expand All @@ -41,7 +42,7 @@ public function boot()
* @param $path
* @return string
*/
protected function packageRootPath($path)
protected function packageRootPath($path):string
{
return __DIR__ . '/../' . $path;
}
Expand Down

0 comments on commit e996a03

Please sign in to comment.