Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from daniel-de-wit/safe
Browse files Browse the repository at this point in the history
Remove thecodingmachine/phpstan-safe-rule
  • Loading branch information
daniel-de-wit authored Nov 11, 2022
2 parents 592ea0e + e3b4b82 commit e9d0a1b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"orchestra/testbench": "^6.7",
"phpstan/phpstan-mockery": "^0.12.13",
"phpstan/phpstan-phpunit": "^0.12.18",
"phpunit/phpunit": "^9.5",
"thecodingmachine/phpstan-safe-rule": "^1.0"
"phpunit/phpunit": "^9.5"
},
"config": {
"sort-packages": true
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ includes:
- vendor/phpstan/phpstan-mockery/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
parameters:
level: max
paths:
Expand Down
3 changes: 0 additions & 3 deletions src/Hooks/EloquentHasManyDeepHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
use Staudenmeir\EloquentHasManyDeep\HasRelationships;
use Throwable;

use function Safe\array_flip;

class EloquentHasManyDeepHook implements ModelHookInterface
{
protected const RELATION_TYPES = [
Expand Down Expand Up @@ -178,7 +176,6 @@ protected function getClassNameInDestinationFile(object $model, string $classNam
/**
* @param ReflectionClass $reflection
* @return array<string, string>
* @throws \Safe\Exceptions\ArrayException
*/
protected function getUsedClassNames(ReflectionClass $reflection): array
{
Expand Down

0 comments on commit e9d0a1b

Please sign in to comment.