Skip to content

Commit 3f999fc

Browse files
committed
deprecate STMT_KEY and use array keys instead
1 parent cf4f62e commit 3f999fc

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

phpstan.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,3 @@ parameters:
379379
-
380380
message: '#Property Rector\\PhpParser\\NodeTraverser\\AbstractImmutableNodeTraverser\:\:\$visitors \(list<PhpParser\\NodeVisitor>\) does not accept array<int\|string, PhpParser\\NodeVisitor>#'
381381
path: src/PhpParser/NodeTraverser/AbstractImmutableNodeTraverser.php
382-
383-
# handle next
384-
- '#Fetching deprecated class constant STMT_KEY of class Rector\\NodeTypeResolver\\Node\\AttributeKey#'

src/NodeTypeResolver/Node/AttributeKey.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ final class AttributeKey
162162
public const IS_BYREF_RETURN = 'is_byref_return';
163163

164164
/**
165+
* @deprecated This value can change, as based on default input keys. Use existing array keys instead.
165166
* @var string
166167
*/
167168
public const STMT_KEY = 'stmt_key';

0 commit comments

Comments
 (0)