Skip to content

Commit

Permalink
[1.x] First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Mar 3, 2024
1 parent db155c4 commit 06d00cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"require": {
"php": "^8.1",
"symfony/finder": "7.*",
"symfony/finder": "6.*|7.*",
"illuminate/support": "10.*|11.*"
},
"require-dev": {
Expand Down
10 changes: 6 additions & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
</report>
Expand All @@ -19,4 +16,9 @@
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="testing"/>
</php>
<source>
<include>
<directory>src/</directory>
</include>
</source>
</phpunit>
2 changes: 0 additions & 2 deletions src/Discoverer.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,13 @@ public function classes(): Collection
// Preemptively pass this class. Now it's left for the filters to keep allowing it.
$passes = true;

// @phpstan-ignore-next-line
foreach ($this->filters as $callback) {
// If the callback returns false, then didn't pass.
if (!$passes = $callback($reflection)) {
break;
}
}

// @phpstan-ignore-next-line
if ($passes) {
$classes->put($reflection->name, $reflection);
}
Expand Down

0 comments on commit 06d00cd

Please sign in to comment.