mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix phpstan errors level 3
This commit is contained in:
parent
dcc285e976
commit
b1082f6a55
@ -1,5 +1,5 @@
|
|||||||
parameters:
|
parameters:
|
||||||
level: 2
|
level: 3
|
||||||
paths:
|
paths:
|
||||||
- src/
|
- src/
|
||||||
- utils/
|
- utils/
|
||||||
|
@ -657,7 +657,7 @@ class CSPerson
|
|||||||
/**
|
/**
|
||||||
* Get dateFinDernierEmploi.
|
* Get dateFinDernierEmploi.
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTimeInterface
|
||||||
*/
|
*/
|
||||||
public function getDateFinDernierEmploi()
|
public function getDateFinDernierEmploi()
|
||||||
{
|
{
|
||||||
|
@ -661,7 +661,7 @@ class Immersion implements \Stringable
|
|||||||
/**
|
/**
|
||||||
* Get debutDate.
|
* Get debutDate.
|
||||||
*
|
*
|
||||||
* @return \DateTime|null
|
* @return \DateTimeInterface
|
||||||
*/
|
*/
|
||||||
public function getDebutDate()
|
public function getDebutDate()
|
||||||
{
|
{
|
||||||
|
@ -146,7 +146,7 @@ class ProjetProfessionnel implements \Stringable
|
|||||||
/**
|
/**
|
||||||
* Get reportDate.
|
* Get reportDate.
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTimeInterface
|
||||||
*/
|
*/
|
||||||
public function getReportDate()
|
public function getReportDate()
|
||||||
{
|
{
|
||||||
|
@ -341,7 +341,6 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
|
|||||||
* @param \Doctrine\ORM\NativeQuery|\Doctrine\ORM\QueryBuilder $qb
|
* @param \Doctrine\ORM\NativeQuery|\Doctrine\ORM\QueryBuilder $qb
|
||||||
* @param mixed[] $data
|
* @param mixed[] $data
|
||||||
*
|
*
|
||||||
* @return mixed|mixed[]
|
|
||||||
*/
|
*/
|
||||||
public function getResult($qb, $data)
|
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[] $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`
|
* @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)
|
public function getLabels($key, array $values, $data)
|
||||||
{
|
{
|
||||||
|
@ -239,7 +239,6 @@ class ListCV implements ListInterface, ExportElementValidatedInterface
|
|||||||
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
||||||
* @param mixed[] $data the data from the export's form (added by self::buildForm)
|
* @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)
|
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[] $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`
|
* @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)
|
public function getLabels($key, array $values, $data)
|
||||||
{
|
{
|
||||||
|
@ -333,7 +333,6 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
|
|||||||
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
||||||
* @param mixed[] $data the data from the export's form (added by self::buildForm)
|
* @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)
|
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[] $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`
|
* @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)
|
public function getLabels($key, array $values, $data)
|
||||||
{
|
{
|
||||||
|
@ -371,7 +371,6 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn
|
|||||||
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
* @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb
|
||||||
* @param mixed[] $data the data from the export's form (added by self::buildForm)
|
* @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)
|
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[] $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`
|
* @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)
|
public function getLabels($key, array $values, $data)
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,6 @@ class ExportsVoter extends AbstractChillVoter implements ProvideRoleHierarchyInt
|
|||||||
* [ 'Title' => [ 'CHILL_FOO_SEE', 'CHILL_FOO_UPDATE' ] ]
|
* [ '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
|
public function getRolesWithHierarchy(): array
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user