-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PathRoutingParser - check if the file is a symlink that might be in a…
…nalysed paths See phpstan/phpstan#11362
- Loading branch information
1 parent
101467d
commit c9a6d2e
Showing
12 changed files
with
367 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"config": { | ||
"preferred-install": { | ||
"*": "dist", | ||
"repro/*": "source" | ||
}, | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "./packages/*/" | ||
} | ||
], | ||
"require": { | ||
"repro/site": "@dev", | ||
"php": "^8.1" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "1.11.7" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
e2e/discussion-11362/packages/site/Classes/Domain/Model/ContentPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Repro\Site\Domain\Model; | ||
|
||
class ContentPage | ||
{ | ||
public const CONTENT_PAGE_TYPE_CONTENT_ELEMENTS = 'content-elements'; | ||
|
||
public const CONTENT_PAGE_TYPE_KARAOKE_PLAYER = 'karaoke-player'; | ||
|
||
protected ?Issue $parentIssue = null; | ||
|
||
protected ?Lesson $parentLesson = null; | ||
|
||
protected string $title; | ||
|
||
protected string $type; | ||
|
||
protected bool $navigationVisible; | ||
|
||
protected string $navigationColor; | ||
|
||
public function __construct() | ||
{ | ||
} | ||
|
||
public function getParentIssue(): ?Issue | ||
{ | ||
return $this->parentIssue; | ||
} | ||
|
||
public function getParentLesson(): ?Lesson | ||
{ | ||
return $this->parentLesson; | ||
} | ||
|
||
public function getTitle(): string | ||
{ | ||
return $this->title; | ||
} | ||
|
||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
public function getNavigationVisible(): bool | ||
{ | ||
return $this->navigationVisible; | ||
} | ||
|
||
public function getNavigationColor(): string | ||
{ | ||
return $this->navigationColor; | ||
} | ||
} | ||
|
45 changes: 45 additions & 0 deletions
45
e2e/discussion-11362/packages/site/Classes/Domain/Model/Issue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Repro\Site\Domain\Model; | ||
|
||
use DateTime; | ||
|
||
class Issue | ||
{ | ||
protected array $settings; | ||
|
||
protected ?SchoolYear $parentSchoolYear = null; | ||
|
||
protected string $title; | ||
|
||
protected int $startDate; | ||
|
||
protected string $holidayTitle; | ||
|
||
|
||
public function __construct() | ||
{ | ||
} | ||
|
||
public function getParentSchoolYear(): SchoolYear | ||
{ | ||
return $this->parentSchoolYear; | ||
} | ||
|
||
public function getTitle(): string | ||
{ | ||
return $this->title; | ||
} | ||
|
||
public function getStartDate(): int | ||
{ | ||
return $this->startDate; | ||
} | ||
|
||
public function getHolidayTitle(): string | ||
{ | ||
return $this->holidayTitle; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
e2e/discussion-11362/packages/site/Classes/Domain/Model/Lesson.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Repro\Site\Domain\Model; | ||
|
||
class Lesson | ||
{ | ||
protected ?SchoolLevel $schoolLevel = null; | ||
|
||
protected ?Issue $parentIssue = null; | ||
|
||
protected int $lessonNumber; | ||
|
||
public function getSchoolLevel(): ?SchoolLevel | ||
{ | ||
return $this->schoolLevel; | ||
} | ||
|
||
public function getParentIssue(): ?Issue | ||
{ | ||
return $this->parentIssue; | ||
} | ||
|
||
public function getLessonNumber(): int | ||
{ | ||
return $this->lessonNumber; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
e2e/discussion-11362/packages/site/Classes/Domain/Model/SchoolLevel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Repro\Site\Domain\Model; | ||
|
||
class SchoolLevel | ||
{ | ||
protected string $title; | ||
|
||
public function getTitle(): string | ||
{ | ||
return $this->title; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
e2e/discussion-11362/packages/site/Classes/Domain/Model/SchoolYear.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Repro\Site\Domain\Model; | ||
|
||
class SchoolYear | ||
{ | ||
protected int $startDate; | ||
|
||
protected int $endDate; | ||
|
||
protected int $introStartDate; | ||
|
||
protected int $introEndDate; | ||
|
||
public function __construct() | ||
{ | ||
} | ||
|
||
public function getStartDate(): int | ||
{ | ||
return $this->startDate; | ||
} | ||
|
||
public function getEndDate(): int | ||
{ | ||
return $this->endDate; | ||
} | ||
|
||
public function getIntroStartDate(): int | ||
{ | ||
return $this->introStartDate; | ||
} | ||
|
||
public function getIntroEndDate(): int | ||
{ | ||
return $this->introEndDate; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"autoload": { | ||
"psr-4": { | ||
"Repro\\Site\\": "Classes" | ||
} | ||
}, | ||
"name": "repro/site", | ||
"require": { | ||
"php": "^8.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
parameters: | ||
excludePaths: | ||
analyseAndScan: | ||
- .git | ||
analyse: | ||
- vendor | ||
|
||
level: 1 | ||
|
||
paths: | ||
- . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters