Skip to content

Commit

Permalink
Merge branch 'release/v0.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Apr 29, 2024
2 parents 0cd3bd8 + a83b4f1 commit 8f0031f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ phpstan.neon export-ignore
phpunit.xml.dist export-ignore
docs/ export-ignore
tests/ export-ignore
stubs/ export-ignore
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.3.3 (2024-04-29)
* Fixed Veneer stubs in gitattributes

## v0.3.2 (2024-04-29)
* Fixed Generic Resolver class scanner
* Added namespace map filter check
Expand Down
13 changes: 8 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
declare(strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([__DIR__.'/src', __DIR__.'/stubs']);
$ecsConfig->sets([SetList::CLEAN_CODE, SetList::PSR_12]);
};
return ECSConfig::configure()
->withPaths([
__DIR__.'/src'
])
->withPreparedSets(
cleanCode: true,
psr12: true
);
5 changes: 2 additions & 3 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use DecodeLabs\Archetype\Resolver\Archetype as ArchetypeResolver;
use DecodeLabs\Archetype\Resolver\DefaultName as DefaultNameResolver;
use DecodeLabs\Archetype\Resolver\FileFinder as FileFinder;
use DecodeLabs\Archetype\Resolver\Generic as GenericResolver;
use DecodeLabs\Archetype\Resolver\Scanner as ScannerResolver;
use DecodeLabs\Exceptional;
use DecodeLabs\Veneer;
Expand All @@ -40,7 +39,7 @@ class Handler
*/
public function getNamespaceMap(): NamespaceMap
{
if(!isset($this->namespaces)) {
if (!isset($this->namespaces)) {
$this->namespaces = new NamespaceMap();
}

Expand Down Expand Up @@ -93,7 +92,7 @@ public function register(

$key = $this->getListKey($item);

if($item instanceof Resolver) {
if ($item instanceof Resolver) {
$item->setNamespaceMap($this->getNamespaceMap());
}

Expand Down
1 change: 0 additions & 1 deletion src/Resolver/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace DecodeLabs\Archetype\Resolver;

use DecodeLabs\Archetype\NamespaceList;
use DecodeLabs\Archetype\ResolverTrait;
use Generator;

Expand Down

0 comments on commit 8f0031f

Please sign in to comment.