Skip to content

Commit 83618ee

Browse files
committed
fix dynamic properties
1 parent d8f8179 commit 83618ee

11 files changed

Lines changed: 56 additions & 10 deletions

File tree

rector.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/src',
10+
])
11+
->withRules([\Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector::class]);

src/Illuminate/Database/QueryException.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
class QueryException extends PDOException {
66

77
/**
8+
* @var \Exception
9+
*/
10+
protected $previous;
11+
12+
/**
813
* The SQL for the query.
914
*
1015
* @var string

src/Illuminate/Database/Schema/Grammars/Grammar.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212
abstract class Grammar extends BaseGrammar {
1313

14-
/**
14+
/**
15+
* @var array
16+
*/
17+
protected $modifiers;
18+
19+
/**
1520
* Compile a rename column command.
1621
*
1722
* @param \Illuminate\Database\Schema\Blueprint $blueprint

src/Illuminate/Foundation/Console/CommandMakeCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
class CommandMakeCommand extends Command {
99

10-
/**
10+
protected Filesystem $files;
11+
12+
/**
1113
* The console command name.
1214
*
1315
* @var string

src/Illuminate/Foundation/Console/KeyGenerateCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
class KeyGenerateCommand extends Command {
88

9-
/**
9+
protected Filesystem $files;
10+
11+
/**
1012
* The console command name.
1113
*
1214
* @var string

src/Illuminate/Foundation/MigrationPublisher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
class MigrationPublisher {
77

8-
/**
8+
protected Filesystem $files;
9+
10+
/**
911
* A cache of migrations at a given destination.
1012
*
1113
* @var array

src/Illuminate/Queue/Queue.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
abstract class Queue {
1010

11-
/**
11+
protected Encrypter $crypt;
12+
13+
/**
1214
* The IoC container instance.
1315
*
1416
* @var \Illuminate\Container\Container

src/Illuminate/Queue/QueueManager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
class QueueManager {
66

7-
/**
7+
/**
8+
* @var array
9+
*/
10+
protected $connectors;
11+
12+
/**
813
* The application instance.
914
*
1015
* @var \Illuminate\Foundation\Application

src/Illuminate/Session/CookieSessionHandler.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
class CookieSessionHandler implements \SessionHandlerInterface {
77

8-
/**
8+
/**
9+
* The cookie lifetime in minutes.
10+
*/
11+
protected int $minutes;
12+
13+
/**
914
* The cookie jar instance.
1015
*/
1116
protected CookieJar $cookie;
@@ -22,7 +27,7 @@ class CookieSessionHandler implements \SessionHandlerInterface {
2227
* @param int $minutes
2328
* @return void
2429
*/
25-
public function __construct(CookieJar $cookie, $minutes)
30+
public function __construct(CookieJar $cookie, int $minutes)
2631
{
2732
$this->cookie = $cookie;
2833
$this->minutes = $minutes;

src/Illuminate/Translation/Translator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
class Translator extends NamespacedItemResolver implements TranslatorInterface {
88

9-
/**
9+
protected MessageSelector $selector;
10+
11+
/**
1012
* The loader implementation.
1113
*
1214
* @var \Illuminate\Translation\LoaderInterface

0 commit comments

Comments
 (0)