Skip to content

Commit 0a744ff

Browse files
committed
Removed deprecated phpstan config and added docblocks
1 parent e025f72 commit 0a744ff

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ parameters:
55
- tests
66
excludePaths:
77
- tests/Envs/*
8-
checkGenericClassInNonGenericObjectType: false
98
ignoreErrors:
109
# -
1110
# message: '#type has no value type specified in iterable type array#'

src/EnvMapper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ protected function getDefaultValue(\ReflectionProperty $subject): mixed
126126
}
127127

128128
/**
129+
* @template T of object
130+
* @param \ReflectionClass<T> $rClass
131+
*
129132
* @return array<string, \ReflectionParameter>
130133
*/
131134
protected function getConstructorArgs(\ReflectionClass $rClass): array
@@ -134,6 +137,9 @@ protected function getConstructorArgs(\ReflectionClass $rClass): array
134137
}
135138

136139
/**
140+
* @template T of object
141+
* @param \ReflectionClass<T> $rClass
142+
*
137143
* @return array<string, \ReflectionParameter>
138144
*/
139145
protected function makeConstructorArgs(\ReflectionClass $rClass): array

0 commit comments

Comments
 (0)