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
28 changes: 0 additions & 28 deletions config/set/nette/nette-30/nette-component-model-return-types.yaml

This file was deleted.

105 changes: 105 additions & 0 deletions config/set/nette/nette-30/nette-param-types.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
services:
Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeDeclarationRector:
# scalar type hints, see https://github.com/nette/component-model/commit/f69df2ca224cad7b07f1c8835679393263ea6771
Nette\ComponentModel\Component:
lookup:
0: '?string'
1: 'bool'
lookupPath:
0: 'string'
1: 'bool'
monitor:
0: 'string'
unmonitor:
0: 'string'
attached:
0: 'Nette\ComponentModel\IComponent'
detached:
0: 'Nette\ComponentModel\IComponent'

Nette\ComponentModel\Container:
getComponent:
1: 'bool'
createComponent:
0: 'string'

Nette\ComponentModel\IComponent:
setParent:
0: '?Nette\ComponentModel\IContainer'
1: 'string'

Nette\ComponentModel\IContainer:
getComponents:
0: 'bool'

# scalar param types https://github.com/nette/security/commit/84024f612fb3f55f5d6e3e3e28eef1ad0388fa56
Nette\Bridges\SecurityDI\SecurityExtension:
__construct:
0: bool

Nette\Security\IUserStorage:
setAuthenticated:
0: bool
setIdentity:
0: ?Nette\Security\IIdentity
setExpiration:
1: int

Nette\Security\Identity:
__construct:
2: iterable
__set:
0: 'string'
'&__get':
0: 'string'
__isset:
0: 'string'

Nette\Security\Passwords:
hash:
0: 'string'
verify:
0: 'string'
1: 'string'
needsRehash:
0: 'string'

Nette\Security\Permission:
addRole:
0: 'string'
hasRole:
0: 'string'
getRoleParents:
0: 'string'
removeRole:
0: 'string'
addResource:
0: 'string'
1: 'string'
hasResource:
0: 'string'
resourceInheritsFrom:
0: 'string'
1: 'string'
2: 'bool'
removeResource:
0: 'string'
allow:
3: 'callable'
deny:
3: 'callable'
setRule:
0: 'bool'
1: 'bool'
5: 'callable'

Nette\Security\User:
logout:
0: 'bool'
getAuthenticator:
0: 'bool'
isInRole:
0: 'string'
getAuthorizator:
0: 'bool'
1: 'string'
Original file line number Diff line number Diff line change
@@ -1,6 +1,64 @@
services:
# scalar type hints, see https://github.com/nette/application/commit/b71d69c507f90b48fbc1e40447d451b4b5c6f063
# scalar type hints, see https://github.com/nette/security/commit/84024f612fb3f55f5d6e3e3e28eef1ad0388fa56
Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector:
Nette\Security\IAuthenticator:
authenticate: 'Nette\Security\IIdentity'

Nette\Security\IAuthorizator:
isAllowed: 'bool'

Nette\Security\Identity:
getData: 'array'

Nette\Security\IIdentity:
getRoles: 'array'

Nette\Security\User:
getStorage: 'Nette\Security\IUserStorage'
login: 'void'
logout: 'void'
isLoggedIn: 'bool'
getIdentity: '?Nette\Security\IIdentity'
getAuthenticator: '?Nette\Security\IAuthenticator'
getAuthorizator: '?Nette\Security\IAuthorizator'
getLogoutReason: '?int'
getRoles: 'array'
isInRole: 'bool'
isAllowed: 'bool'

Nette\Security\IUserStorage:
isAuthenticated: 'bool'
getIdentity: '?Nette\Security\IIdentity'
getLogoutReason: '?int'

# scalar type hints, see https://github.com/nette/component-model/commit/f69df2ca224cad7b07f1c8835679393263ea6771
Nette\ComponentModel\Component:
lookup: 'Nette\ComponentModel\IComponent'
lookupPath: '?string'
monitor: 'void'
unmonitor: 'void'
attached: 'void'
detached: 'void'
getName: '?string'

Nette\ComponentModel\IComponent:
getName: '?string'
getParent: '?Nette\ComponentModel\IContainer'

Nette\ComponentModel\Container:
removeComponent: 'void'
getComponent: '?Nette\ComponentModel\IComponent'
createComponent: '?Nette\ComponentModel\IComponent'
getComponents: 'Iterator'
validateChildComponent: 'void'
_isCloning: '?Nette\ComponentModel\IComponent'

Nette\ComponentModel\IContainer:
removeComponent: 'void'
getComponent: '?Nette\ComponentModel\IContainer'
getComponents: 'Iterator'

# scalar type hints, see https://github.com/nette/application/commit/b71d69c507f90b48fbc1e40447d451b4b5c6f063
Nette\Application\Application:
run: 'void'
createInitialRequest: 'Nette\Application\Request'
Expand Down
33 changes: 0 additions & 33 deletions config/set/nette/nette-30/nette-security-return-types.yaml

This file was deleted.

Loading