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

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Mar 14, 2024
1 parent 99b9c18 commit 36ca59b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
env:
SYMFONY_REQUIRE: "${{ matrix.symfony-versions }}"
- name: tests
run: vendor/bin/phpunit
run: vendor/bin/simple-phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use AutoMapper\Generator\Generator;
use AutoMapper\Transformer\ChainTransformerFactory;
use AutoMapper\Transformer\CustomTransformer\CustomTransformerFactory;
use AutoMapper\Transformer\CustomTransformer\CustomTransformerInterface;
use AutoMapper\Transformer\CustomTransformer\CustomTransformersRegistry;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
Expand Down
5 changes: 1 addition & 4 deletions tests/Resources/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
use AutoMapper\Bundle\Tests\Fixtures\UserDTO;
use AutoMapper\MapperGeneratorMetadataInterface;
use AutoMapper\MapperMetadata;
use AutoMapper\Transformer\CustomTransformer\CustomModelTransformer;
use AutoMapper\Transformer\CustomTransformer\CustomModelTransformerInterface;
use AutoMapper\Transformer\CustomTransformer\CustomPropertyTransformerInterface;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
Expand Down Expand Up @@ -67,7 +65,7 @@ class YearOfBirthTransformer implements CustomPropertyTransformerInterface
{
public function transform(object|array $user): mixed
{
assert($user instanceof User);
\assert($user instanceof User);

return ((int) date('Y')) - ((int) $user->age);
}
Expand All @@ -80,7 +78,6 @@ public function supports(string $source, string $target, string $propertyName):

class UserMapperConfiguration
{

}
} else {
class UserMapperConfiguration implements MapperConfigurationInterface
Expand Down

0 comments on commit 36ca59b

Please sign in to comment.