File tree Expand file tree Collapse file tree 8 files changed +64
-0
lines changed Expand file tree Collapse file tree 8 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,9 @@ public function purge($name = null)
419
419
*
420
420
* @param string $driver
421
421
* @param \Closure $callback
422
+ *
423
+ * @param-closure-this $this $callback
424
+ *
422
425
* @return $this
423
426
*/
424
427
public function extend ($ driver , Closure $ callback )
Original file line number Diff line number Diff line change @@ -587,6 +587,9 @@ public function setDefaultDriver($name)
587
587
*
588
588
* @param string $driver
589
589
* @param \Closure $callback
590
+ *
591
+ * @param-closure-this $this $callback
592
+ *
590
593
* @return $this
591
594
*/
592
595
public function extend ($ driver , Closure $ callback )
Original file line number Diff line number Diff line change @@ -255,6 +255,9 @@ public function purge($name = null)
255
255
*
256
256
* @param string $driver
257
257
* @param \Closure $callback
258
+ *
259
+ * @param-closure-this $this $callback
260
+ *
258
261
* @return $this
259
262
*/
260
263
public function extend ($ driver , Closure $ callback )
Original file line number Diff line number Diff line change @@ -192,6 +192,9 @@ public function purge($name = null)
192
192
*
193
193
* @param string $name
194
194
* @param \Closure $callback
195
+ *
196
+ * @param-closure-this $this $callback
197
+ *
195
198
* @return $this
196
199
*/
197
200
public function extend ($ name , Closure $ callback )
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Illuminate \Cache \CacheManager ;
6
+
7
+ use function PHPStan \Testing \assertType ;
8
+
9
+ $ cacheManager = resolve (CacheManager::class);
10
+
11
+ $ cacheManager ->extend ('redis ' , function (): void {
12
+ assertType ('Illuminate\Cache\CacheManager ' , $ this );
13
+ });
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Illuminate \Concurrency \ConcurrencyManager ;
6
+
7
+ use function PHPStan \Testing \assertType ;
8
+
9
+ $ concurrencyManager = resolve (ConcurrencyManager::class);
10
+
11
+ $ concurrencyManager ->extend ('custom ' , function (): void {
12
+ assertType ('Illuminate\Concurrency\ConcurrencyManager ' , $ this );
13
+ });
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Illuminate \Log \LogManager ;
6
+
7
+ use function PHPStan \Testing \assertType ;
8
+
9
+ $ logManager = resolve (LogManager::class);
10
+
11
+ $ logManager ->extend ('emergency ' , function (): void {
12
+ assertType ('Illuminate\Log\LogManager ' , $ this );
13
+ });
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Illuminate \Redis \RedisManager ;
6
+
7
+ use function PHPStan \Testing \assertType ;
8
+
9
+ $ redisManager = resolve (RedisManager::class);
10
+
11
+ $ redisManager ->extend ('custom ' , function (): void {
12
+ assertType ('Illuminate\Redis\RedisManager ' , $ this );
13
+ });
You can’t perform that action at this time.
0 commit comments