You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run nette/coding-standard, which uses Slevomat Coding Standards, the YodaComparison fix seems to be breaking the following class:
<?php
declare(strict_types=1);
trait TestNullTrait
{
public const NAME = 'name';
public function renderNull(?ActiveRow $row): int
{
if (null === $row->{self::NAME}) {
return 0;
}
return 1;
}
}
The fix looks like this:
if ($row->{self::NAME === null}) {
Which is wrong, it should be
if ($row->{self::NAME} === null) {
The text was updated successfully, but these errors were encountered:
When I run nette/coding-standard, which uses Slevomat Coding Standards, the YodaComparison fix seems to be breaking the following class:
The fix looks like this:
if ($row->{self::NAME === null}) {
Which is wrong, it should be
if ($row->{self::NAME} === null) {
The text was updated successfully, but these errors were encountered: