mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-14 04:44:57 +01:00
18 lines
374 B
PHP
18 lines
374 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\RemovingStatic;
|
|
|
|
final class UniqueObjectOrServiceDetector
|
|
{
|
|
public function isUniqueObject() : bool
|
|
{
|
|
// ideas:
|
|
// hook in container?
|
|
// has scalar arguments?
|
|
// is created by new X in the code? → add "NewNodeCollector"
|
|
// fallback for now :)
|
|
return \true;
|
|
}
|
|
}
|