Skip to content

Commit

Permalink
Merge 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 14, 2023
2 parents 6a25bb3 + e2e59b0 commit 63697e7
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Doctrine/Common/State/PersistProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Checks if doctrine does not manage data automatically.
*
* @param mixed $data
*/
private function isDeferredExplicit(DoctrineObjectManager $manager, $data): bool
{
Expand Down
2 changes: 2 additions & 0 deletions src/Doctrine/Common/State/RemoveProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Gets the Doctrine object manager associated with given data.
*
* @param mixed $data
*/
private function getManager($data): ?DoctrineObjectManager
{
Expand Down
2 changes: 2 additions & 0 deletions src/Doctrine/Odm/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public function apply(Builder $aggregationBuilder, string $resourceClass, Operat

/**
* Passes a property through the filter.
*
* @param mixed $value
*/
abstract protected function filterProperty(string $property, $value, Builder $aggregationBuilder, string $resourceClass, Operation $operation = null, array &$context = []): void;

Expand Down
2 changes: 2 additions & 0 deletions src/Doctrine/Odm/Filter/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ protected function filterProperty(string $property, $values, Builder $aggregatio

/**
* Adds the match stage according to the chosen null management.
*
* @param mixed $value
*/
private function addMatch(Builder $aggregationBuilder, string $field, string $operator, $value, string $nullManagement = null): void
{
Expand Down
2 changes: 2 additions & 0 deletions src/Doctrine/Orm/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function apply(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $q

/**
* Passes a property through the filter.
*
* @param mixed $value
*/
abstract protected function filterProperty(string $property, $value, QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, Operation $operation = null, array $context = []): void;

Expand Down
2 changes: 2 additions & 0 deletions src/GraphQl/ExecutorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ interface ExecutorInterface
{
/**
* @see http://webonyx.github.io/graphql-php/executing-queries/#using-facade-method
*
* @param mixed $source
*/
public function executeQuery(Schema $schema, $source, mixed $rootValue = null, mixed $context = null, array $variableValues = null, string $operationName = null, callable $fieldResolver = null, array $validationRules = null): ExecutionResult;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public static function groupsProvider(): array

/**
* @dataProvider groupsProvider
*
* @param mixed $readGroups
* @param mixed $writeGroups
*/
public function testCreate($readGroups, $writeGroups): void
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/EventListener/SerializeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ public function onKernelView(ViewEvent $event): void
/**
* Tries to serialize data that are not API resources (e.g. the entrypoint or data returned by a custom controller).
*
* @param mixed $controllerResult
*
* @throws RuntimeException
*/
private function serializeRawData(ViewEvent $event, Request $request, $controllerResult): void
Expand Down
2 changes: 2 additions & 0 deletions src/Util/IriHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public static function parseIri(string $iri, string $pageParameterName): array

/**
* Gets a collection IRI for the given parameters.
*
* @param mixed $urlGenerationStrategy
*/
public static function createIri(array $parts, array $parameters, string $pageParameterName = null, float $page = null, $urlGenerationStrategy = UrlGeneratorInterface::ABS_PATH): string
{
Expand Down
4 changes: 4 additions & 0 deletions tests/Behat/DoctrineContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ public function thereAreFooObjectsWithFakeNames(int $nb): void

/**
* @Given there are :nb fooDummy objects with fake names
*
* @param mixed $nb
*/
public function thereAreFooDummyObjectsWithFakeNames($nb): void
{
Expand Down Expand Up @@ -1775,6 +1777,8 @@ public function thereIsADummyDtoCustom(): void

/**
* @Given there are :nb DummyDtoCustom
*
* @param mixed $nb
*/
public function thereAreNbDummyDtoCustom($nb): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(private readonly NormalizerInterface $documentationN

/**
* @param mixed|null $format
* @param mixed $object
*
* @throws ExceptionInterface
*/
Expand All @@ -49,6 +50,7 @@ public function normalize($object, $format = null, array $context = [])

/**
* @param mixed|null $format
* @param mixed $data
*/
public function supportsNormalization($data, $format = null): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public function process(mixed $data, Operation $operation, array $uriVariables =

/**
* Gets the Doctrine object manager associated with given data.
*
* @param mixed $data
*/
private function getManager($data): ?DoctrineObjectManager
{
Expand All @@ -77,6 +79,8 @@ private function getManager($data): ?DoctrineObjectManager

/**
* Checks if doctrine does not manage data automatically.
*
* @param mixed $data
*/
private function isDeferredExplicit(DoctrineObjectManager $manager, $data): bool
{
Expand Down
7 changes: 7 additions & 0 deletions tests/State/Pagination/ArrayPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ class ArrayPaginatorTest extends TestCase
{
/**
* @dataProvider initializeProvider
*
* @param mixed $firstResult
* @param mixed $maxResults
* @param mixed $currentItems
* @param mixed $totalItems
* @param mixed $currentPage
* @param mixed $lastPage
*/
public function testInitialize(array $results, $firstResult, $maxResults, $currentItems, $totalItems, $currentPage, $lastPage): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ public static function invalidHttpStatusCodeProvider(): array

/**
* @dataProvider invalidHttpStatusCodeProvider
*
* @param mixed $invalidHttpStatusCode
*/
public function testExceptionToStatusConfigWithInvalidHttpStatusCode($invalidHttpStatusCode): void
{
Expand Down Expand Up @@ -265,6 +267,8 @@ public static function invalidHttpStatusCodeValueProvider(): array

/**
* @dataProvider invalidHttpStatusCodeValueProvider
*
* @param mixed $invalidHttpStatusCodeValue
*/
public function testExceptionToStatusConfigWithInvalidHttpStatusCodeValue($invalidHttpStatusCodeValue): void
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Symfony/Bundle/Test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public function testDefaultHeaders(): void

/**
* @dataProvider authBasicProvider
*
* @param mixed $basic
*/
public function testAuthBasic($basic): void
{
Expand Down

0 comments on commit 63697e7

Please sign in to comment.