fix phpstan errors level 3

This commit is contained in:
Julie Lenaerts 2024-04-23 21:03:42 +02:00
parent dcc285e976
commit b1082f6a55
9 changed files with 4 additions and 13 deletions

View File

@ -1,5 +1,5 @@
parameters:
level: 2
level: 3
paths:
- src/
- utils/

View File

@ -657,7 +657,7 @@ class CSPerson
/**
* Get dateFinDernierEmploi.
*
* @return \DateTime
* @return \DateTimeInterface
*/
public function getDateFinDernierEmploi()
{

View File

@ -661,7 +661,7 @@ class Immersion implements \Stringable
/**
* Get debutDate.
*
* @return \DateTime|null
* @return \DateTimeInterface
*/
public function getDebutDate()
{

View File

@ -146,7 +146,7 @@ class ProjetProfessionnel implements \Stringable
/**
* Get reportDate.
*
* @return \DateTime
* @return \DateTimeInterface
*/
public function getReportDate()
{

View File

@ -341,7 +341,6 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
* @param \Doctrine\ORM\NativeQuery|\Doctrine\ORM\QueryBuilder $qb
* @param mixed[] $data
*
* @return mixed|mixed[]
*/
public function getResult($qb, $data)
{
@ -383,7 +382,6 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
* @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR')
* @param mixed $data The data from the export's form (as defined in `buildForm`
*
* @return \Closure where the first argument is the value, and the function should return the label to show in the formatted file. Example : `function($countryCode) use ($countries) { return $countries[$countryCode]->getName(); }`
*/
public function getLabels($key, array $values, $data)
{

View File

@ -239,7 +239,6 @@ class ListCV implements ListInterface, ExportElementValidatedInterface
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
* @param mixed[] $data the data from the export's form (added by self::buildForm)
*
* @return mixed[] an array of results
*/
public function getResult($qb, $data)
{
@ -314,7 +313,6 @@ class ListCV implements ListInterface, ExportElementValidatedInterface
* @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR')
* @param mixed $data The data from the export's form (as defined in `buildForm`
*
* @return \Closure where the first argument is the value, and the function should return the label to show in the formatted file. Example : `function($countryCode) use ($countries) { return $countries[$countryCode]->getName(); }`
*/
public function getLabels($key, array $values, $data)
{

View File

@ -333,7 +333,6 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
* @param mixed[] $data the data from the export's form (added by self::buildForm)
*
* @return mixed[]|\Closure an array of results
*/
public function getResult($qb, $data)
{
@ -410,7 +409,6 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
* @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR')
* @param mixed $data The data from the export's form (as defined in `buildForm`
*
* @return \Closure where the first argument is the value, and the function should return the label to show in the formatted file. Example : `function($countryCode) use ($countries) { return $countries[$countryCode]->getName(); }`
*/
public function getLabels($key, array $values, $data)
{

View File

@ -371,7 +371,6 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
* @param mixed[] $data the data from the export's form (added by self::buildForm)
*
* @return mixed[] an array of results
*/
public function getResult($qb, $data)
{
@ -448,7 +447,6 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn
* @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR')
* @param mixed $data The data from the export's form (as defined in `buildForm`
*
* @return \Closure where the first argument is the value, and the function should return the label to show in the formatted file. Example : `function($countryCode) use ($countries) { return $countries[$countryCode]->getName(); }`
*/
public function getLabels($key, array $values, $data)
{

View File

@ -87,7 +87,6 @@ class ExportsVoter extends AbstractChillVoter implements ProvideRoleHierarchyInt
* [ 'Title' => [ 'CHILL_FOO_SEE', 'CHILL_FOO_UPDATE' ] ]
* ```
*
* @return array where keys are the hierarchy, and values an array of roles: `[ 'title' => [ 'CHILL_FOO_SEE', 'CHILL_FOO_UPDATE' ] ]`
*/
public function getRolesWithHierarchy(): array
{