Skip to content

Commit 16d92bb

Browse files
authored
Merge pull request #15 from cleverage/14_quality
#14 Quality fix
2 parents 4e659f6 + 92aa63c commit 16d92bb

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

phpstan.neon

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 8
2+
level: 6
33
paths:
44
- src
55
- tests
@@ -14,7 +14,10 @@ parameters:
1414
- '#process\(\) has no return type specified#'
1515
- '#should return Iterator but returns Traversable#'
1616
- '#Negated boolean expression is always false#'
17-
checkGenericClassInNonGenericObjectType: false
17+
-
18+
identifier: missingType.generics
19+
-
20+
identifier: doctrine.columnType
1821
reportUnmatchedIgnoredErrors: false
1922
inferPrivatePropertyTypeFromConstructor: true
2023
treatPhpDocTypesAsCertain: false

src/Entity/LogRecord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getId(): ?int
5151
public function __construct(
5252
\Monolog\LogRecord $record,
5353
#[ORM\ManyToOne(targetEntity: ProcessExecution::class, cascade: ['all'])]
54-
#[ORM\JoinColumn(name: 'process_execution_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
54+
#[ORM\JoinColumn(name: 'process_execution_id', referencedColumnName: 'id', onDelete: 'CASCADE', nullable: false)]
5555
private readonly ProcessExecution $processExecution,
5656
) {
5757
$this->channel = (string) (new UnicodeString($record->channel))->truncate(64);

src/Repository/ProcessExecutionRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
* @extends EntityRepository<ProcessExecution>
2323
*
2424
* @method ProcessExecution|null find($id, $lockMode = null, $lockVersion = null)
25-
* @method ProcessExecution|null findOneBy(array $criteria, array $orderBy = null)
25+
* @method ProcessExecution|null findOneBy(mixed[] $criteria, string[] $orderBy = null)
2626
* @method ProcessExecution[] findAll()
27-
* @method ProcessExecution[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
27+
* @method ProcessExecution[] findBy(mixed[] $criteria, string[] $orderBy = null, $limit = null, $offset = null)
2828
*/
2929
class ProcessExecutionRepository extends EntityRepository
3030
{

src/Repository/ProcessScheduleRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
* @extends ServiceEntityRepository<ProcessSchedule>
2222
*
2323
* @method ProcessSchedule|null find($id, $lockMode = null, $lockVersion = null)
24-
* @method ProcessSchedule|null findOneBy(array $criteria, array $orderBy = null)
24+
* @method ProcessSchedule|null findOneBy(mixed[] $criteria, string[] $orderBy = null)
2525
* @method ProcessSchedule[] findAll()
26-
* @method ProcessSchedule[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
26+
* @method ProcessSchedule[] findBy(mixed[] $criteria, string[] $orderBy = null, $limit = null, $offset = null)
2727
*/
2828
class ProcessScheduleRepository extends ServiceEntityRepository
2929
{

0 commit comments

Comments
 (0)