mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-15 13:25:30 +01:00
20 lines
373 B
PHP
20 lines
373 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;
|
|
}
|
|
}
|