Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 8
level: 6
paths:
- src
- tests
Expand All @@ -14,7 +14,10 @@ parameters:
- '#process\(\) has no return type specified#'
- '#should return Iterator but returns Traversable#'
- '#Negated boolean expression is always false#'
checkGenericClassInNonGenericObjectType: false
-
identifier: missingType.generics
-
identifier: doctrine.columnType
reportUnmatchedIgnoredErrors: false
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
2 changes: 1 addition & 1 deletion src/Entity/LogRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getId(): ?int
public function __construct(
\Monolog\LogRecord $record,
#[ORM\ManyToOne(targetEntity: ProcessExecution::class, cascade: ['all'])]
#[ORM\JoinColumn(name: 'process_execution_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
#[ORM\JoinColumn(name: 'process_execution_id', referencedColumnName: 'id', onDelete: 'CASCADE', nullable: false)]
private readonly ProcessExecution $processExecution,
) {
$this->channel = (string) (new UnicodeString($record->channel))->truncate(64);
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/ProcessExecutionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
* @extends EntityRepository<ProcessExecution>
*
* @method ProcessExecution|null find($id, $lockMode = null, $lockVersion = null)
* @method ProcessExecution|null findOneBy(array $criteria, array $orderBy = null)
* @method ProcessExecution|null findOneBy(mixed[] $criteria, string[] $orderBy = null)
* @method ProcessExecution[] findAll()
* @method ProcessExecution[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
* @method ProcessExecution[] findBy(mixed[] $criteria, string[] $orderBy = null, $limit = null, $offset = null)
*/
class ProcessExecutionRepository extends EntityRepository
{
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/ProcessScheduleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* @extends ServiceEntityRepository<ProcessSchedule>
*
* @method ProcessSchedule|null find($id, $lockMode = null, $lockVersion = null)
* @method ProcessSchedule|null findOneBy(array $criteria, array $orderBy = null)
* @method ProcessSchedule|null findOneBy(mixed[] $criteria, string[] $orderBy = null)
* @method ProcessSchedule[] findAll()
* @method ProcessSchedule[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
* @method ProcessSchedule[] findBy(mixed[] $criteria, string[] $orderBy = null, $limit = null, $offset = null)
*/
class ProcessScheduleRepository extends ServiceEntityRepository
{
Expand Down
Loading