Skip to content

Commit 3f40ed0

Browse files
committed
Removed deprecated phpstan config and added docblocks
1 parent c69bb22 commit 3f40ed0

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
@@ -127,6 +127,9 @@ protected function getDefaultValue(\ReflectionProperty $subject): mixed
127127
}
128128

129129
/**
130+
* @template T of object
131+
* @param \ReflectionClass<T> $rClass
132+
*
130133
* @return array<string, \ReflectionParameter>
131134
*/
132135
protected function getConstructorArgs(\ReflectionClass $rClass): array
@@ -135,6 +138,9 @@ protected function getConstructorArgs(\ReflectionClass $rClass): array
135138
}
136139

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

0 commit comments

Comments
 (0)