Your project should not contain unused code 4
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.unused_local_variable_or_private_member
- * @param string $name
- * @param string $entry
- * @param \Throwable|null $prev
- */
- public function __construct(
- private int $position,
- private string $name,
- private string $entry,
- private ReflectionFunction|ReflectionMethod $ref,
- ?\Throwable $prev = null,
- ) {
- * @param \Throwable|null $prev
- */
- public function __construct(
- private int $position,
- private string $name,
- private string $entry,
- private ReflectionFunction|ReflectionMethod $ref,
- ?\Throwable $prev = null,
- ) {
- $this->caller = $ref instanceof ReflectionMethod
- ? $ref->getDeclaringClass()->getName() . '::' . $ref->getName()
- */
- public function __construct(
- private int $position,
- private string $name,
- private string $entry,
- private ReflectionFunction|ReflectionMethod $ref,
- ?\Throwable $prev = null,
- ) {
- $this->caller = $ref instanceof ReflectionMethod
- ? $ref->getDeclaringClass()->getName() . '::' . $ref->getName()
- : $ref->getName();
- * @param string $entry
- * @param \Throwable|null $prev
- */
- public function __construct(
- private int $position,
- private string $name,
- private string $entry,
- private ReflectionFunction|ReflectionMethod $ref,
- ?\Throwable $prev = null,
- ) {
- $this->caller = $ref instanceof ReflectionMethod