Passed
Push — master ( 51fe0c...0788c4 )
by Korotkov
08:19 queued 06:58
created

main.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace AntiPatterns\Multiton;
4
5
require_once "vendor/autoload.php";
6
7
print (FirstSingleton::getInstance() === SecondSingleton::getInstance()) ?: "Multiton \n";
0 ignored issues
show
Are you sure AntiPatterns\Multiton\Fi...tance() ?: 'Multiton ' of type string|true can be used in print()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

7
print /** @scrutinizer ignore-type */ (FirstSingleton::getInstance() === SecondSingleton::getInstance()) ?: "Multiton \n";
Loading history...
8