Commit 2e051ec
committed
Add phpBinary to DebugServer options array shape
PHPStan flagged the new $this->options['phpBinary'] ?? '' lookup because
the @param array shape on DebugServer::__construct didn't declare
`phpBinary`. Without the shape entry PHPStan inferred the offset as
absent and folded the ?? '' to a literal '', triggering both an
"offset does not exist" error and a "strict comparison '' !== '' always
false" follow-up at each of the two new call sites.
Add `phpBinary?: string` to the array shape so PHPStan agrees with the
runtime behavior. No code change.1 parent 112151f commit 2e051ec
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments