Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init gitattributes file to preserve the planet #503

Merged
merged 3 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/.gitbook.yaml export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php_cs.dist export-ignore
/docker-compose.yml export-ignore
/Dockerfile export-ignore
/docs export-ignore
/ecs.php export-ignore
/Makefile export-ignore
/phpspec.yml.dist export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/rector.php
/src/Bundle/spec export-ignore
/src/Bundle/test export-ignore
/src/Bundle/Tests export-ignore
/src/Component/spec export-ignore
/src/Component/Tests export-ignore
/src/Component/phpspec.yml.dist export-ignore
/src/Component/phpunit.xml.dist export-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function resolve(array $resourcesConfiguration): array
});

$interfaces = array_map(static function (array $classes): string {
return (string) current($classes);
return current($classes);
}, $interfaces);

foreach ($resourcesConfiguration as $alias => $configuration) {
Expand Down
4 changes: 2 additions & 2 deletions src/Bundle/Tests/Command/DebugResourceCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function it_lists_all_resources_if_no_argument_is_given(): void
+------------+

EOT
, $display);
, $display);
}

/**
Expand All @@ -82,7 +82,7 @@ public function it_displays_the_metadata_for_given_resource_alias(): void
+------------------------------+-----------------+

EOT
, $display);
, $display);
}

private function createMetadata(string $suffix): MetadataInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function it_adds_resource_repository_to_resource_repository_registry(): v

/**
* @test
*
* @doesNotPerformAssertions
*/
public function it_does_not_add_resource_repository_to_resource_repository_registry_if_registry_does_not_exist(): void
Expand Down
1 change: 1 addition & 0 deletions src/Component/Factory/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ final class Factory implements FactoryInterface
{
/**
* @var string
*
* @psalm-var class-string
*/
private $className;
Expand Down
1 change: 1 addition & 0 deletions src/Component/Model/TranslatableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface TranslatableInterface
{
/**
* @return Collection|TranslationInterface[]
*
* @psalm-return Collection<array-key, TranslationInterface>
*/
public function getTranslations(): Collection;
Expand Down
1 change: 1 addition & 0 deletions src/Component/Repository/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/**
* @template T of ResourceInterface
*
* @extends ObjectRepository<T>
*/
interface RepositoryInterface extends ObjectRepository
Expand Down
2 changes: 2 additions & 0 deletions src/Component/Tests/Metadata/MetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ final class MetadataTest extends TestCase
{
/**
* @test
*
* @runInSeparateProcess
*
* @preserveGlobalState disabled
*/
public function it_uses_a_custom_inflector(): void
Expand Down