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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/phpunit.xml export-ignore
/tests export-ignore
/.editorconfig export-ignore
/phpstan.neon export-ignore
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- 8.1
- 8.2
- 8.3
- 8.4
laravel-constraint:
- 10.*
- 11.*
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
ignoreErrors:
- '#Trait Laragear\\Meta\\BootHelpers is used zero times and is not analysed\.#'
- '#Trait Laragear\\Meta\\Console\\Commands\\WithEnvironmentFile is used zero times and is not analysed\.#'
- '#Trait Laragear\\Meta\\Database\\Eloquent\\ExtendsBuilder is used zero times and is not analysed\.#'
4 changes: 2 additions & 2 deletions src/BootHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait BootHelpers
* @param callable|string|null $callback
* @return void
*/
protected function withDriver(string $service, string|array $driver, callable|string $callback = null): void
protected function withDriver(string $service, string|array $driver, callable|string|null $callback = null): void
{
if (is_string($driver)) {
$driver = [$driver => $callback];
Expand All @@ -49,7 +49,7 @@ protected function withDriver(string $service, string|array $driver, callable|st
protected function withValidationRule(
string $rule,
callable|string $callback,
callable|string $message = null,
callable|string|null $message = null,
bool $implicit = false
): void {
$this->callAfterResolving(
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/MiddlewareDeclaration.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function last(): void
* @param (callable(\Illuminate\Contracts\Foundation\Application):TValue)|null $callback
* @return $this
*/
public function shared(callable $callback = null): static
public function shared(?callable $callback = null): static
{
$this->kernel->getApplication()->singleton($this->middleware, $callback);

Expand Down
Loading