forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaravel58.yaml
23 lines (20 loc) · 861 Bytes
/
laravel58.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://laravel-news.com/laravel-5-8-deprecates-string-and-array-helpers
# https://github.com/laravel/framework/pull/26898
imports:
- { resource: 'static/array-str-functions-to-static-call.yaml'}
# see: https://laravel.com/docs/5.8/upgrade
services:
Rector\Laravel\Rector\StaticCall\MinutesToSecondsInCacheRector: null
Rector\Core\Rector\ClassMethod\AddReturnTypeDeclarationRector:
$typehintForMethodByClass:
Illuminate\Contracts\Cache\Repository:
put: 'bool'
forever: 'bool'
Illuminate\Contracts\Cache\Store:
put: 'bool'
putMany: 'bool'
forever: 'bool'
Rector\Core\Rector\Property\RenamePropertyRector:
$oldToNewPropertyByTypes:
Illuminate\Routing\UrlGenerator:
cachedSchema: 'cachedScheme'