mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
23 lines
314 B
PHP
23 lines
314 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Fixtures\Arch\ToUseStrictEquality;
|
|
|
|
class NotStrictEquality
|
|
{
|
|
public function test(): void
|
|
{
|
|
$a = 1;
|
|
$b = '1';
|
|
|
|
if ($a == $b) {
|
|
echo 'Equal';
|
|
}
|
|
|
|
if ($a != $b) {
|
|
echo 'Equal';
|
|
}
|
|
}
|
|
}
|