Alexander

Results 10 issues of Alexander

"Extract" method filters items by isCollection. isCollection by unknown reason does not treat stdClass as container. Though stdClass is not Traversable, it's still efficient and popular key-value storage, suitable for...

PHP 7.1
11.0.0

According to documentation, the VM is not reenterable: > While your foreign method is executing, the VM is completely suspended. No other fibers run until your foreign method returns. You...

enhancement
vm

The following simple .htaccess file produces 500 error: ``` ## No directory listings Options -Indexes IndexIgnore * RewriteEngine On RewriteBase / ## Begin - Rewrite rules to block out some...

Lines 251-252 are duplicates: $request->setResponseErrno(curl_errno($transfer['handle'])); $request->setResponseError(curl_error($transfer['handle']));

### Bug report ```php $value = (float) ($_GET['test'] ?? 0); // Ensure float value without fractional part has .0 ending, unless it's NAN, INF, -INF. $strValue = ($v = (string)...

### Bug report ```php $timeLimit = ini_get('max_execution_time'); empty($timeLimit) && $timeLimit !== '0' and $timeLimit = 30; ``` ini_get returns string|false empty checks for '0', '' and false. empty($timeLimit) && $timeLimit...

### Bug report ```php $date = new \DateTime('2024-01-01'); // getTimezone returns DateTimeZone|false, false is converted to null, thus nullsafe operator should be applicable $timezoneName = ($date->getTimezone() ?: null)?->getName() ?? false;...

### Bug report PHPStan does not expect integer sum to overflow and become float, thus we get error: Else branch is unreachable because ternary operator condition is always true. Because...

### Bug report I thought the bug was already fixed in the last version (https://github.com/phpstan/phpstan/issues/10956), but it seems, that it was solved only partially. Strict comparison using === between mixed...

bug

**Feature description or problem with existing feature** PHPStan already implemented conditional parameter types. It will be nice to have their support in intelephense. **Describe the solution you'd like** Conditional typing...

phpdoc