for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Explicit Architecture POC,
* which is created on top of the Symfony Demo application.
*
* (c) Herberto Graça <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme\App\Infrastructure\Persistence\Doctrine;
use Acme\App\Core\Port\Persistence\QueryInterface;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\Query;
final class DqlQuery implements QueryInterface
{
/**
* @var Query
private $filters;
* @var int
private $hydrationMode = AbstractQuery::HYDRATE_OBJECT;
public function __construct(array $filters)
$this->filters = $filters;
$filters
array
object<Doctrine\ORM\Query>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
public function getFilters(): array
return $this->filters;
public function setHydrationMode(int $hydrationMode): void
$this->hydrationMode = $hydrationMode;
public function getHydrationMode(): int
return $this->hydrationMode;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..