mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
d56e7982d0
dedd4b55fe
make node_helper.php safe for similar names
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;
|
|
}
|
|
}
|