Skip to content

Commit 40f0f75

Browse files
committed
Removed deprecated phpstan config and added docblocks
1 parent 91aee31 commit 40f0f75

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

131131
/**
132+
* @template T of object
133+
* @param \ReflectionClass<T> $rClass
134+
*
132135
* @return array<string, \ReflectionParameter>
133136
*/
134137
protected function getConstructorArgs(\ReflectionClass $rClass): array
@@ -137,6 +140,9 @@ protected function getConstructorArgs(\ReflectionClass $rClass): array
137140
}
138141

139142
/**
143+
* @template T of object
144+
* @param \ReflectionClass<T> $rClass
145+
*
140146
* @return array<string, \ReflectionParameter>
141147
*/
142148
protected function makeConstructorArgs(\ReflectionClass $rClass): array

0 commit comments

Comments
 (0)