mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
release: v3.2.0
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
}
|
||||
18
tests/Fixtures/Arch/ToUseStrictEquality/StrictEquality.php
Normal file
18
tests/Fixtures/Arch/ToUseStrictEquality/StrictEquality.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Fixtures\Arch\ToUseStrictEquality;
|
||||
|
||||
class StrictEquality
|
||||
{
|
||||
public function test(): void
|
||||
{
|
||||
$a = 1;
|
||||
$b = '1';
|
||||
|
||||
if ($a === $b) {
|
||||
echo 'Equal';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user