You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8d530b5
Browse filesBrowse the repository at this point in the historyBrowse files
Declare PhpFileCleaner's and SymbolFinderInFiles' properties and signatures
PhpFileCleaner declared none of its twin's five private properties —
the generator could not express the `string $contents = ''` default, so
no declareProperties() was generated — and SymbolFinderInFiles neither
declared nor kept the promoted $cleaner. Both registered their one
working method by hand, without its return type.
reg::Class learns typed properties with a string default
(typedStringProperty()), which the generator now emits, so both classes
declare their properties by the generated declarations; the
SymbolFinderInFiles constructor stores $cleaner, and clean() and
findSymbols() register by their sig:: declarations.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A
Copy file name to clipboardExpand all lines: turbo-ext/src/reg.h
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -427,6 +427,7 @@ enum class PropertyKind
427
427
TypedBool, /* a `private bool $x = false` typed property with a bool default; defaultValue carries the default (0/1), the type is bool */
428
428
TypedLong, /* a `private int $x = 0` typed property with an int default; defaultValue carries the default, the type is int */
429
429
TypedFalse, /* a typed property defaulting to false (`private string|false|null $x = false`, `private Foo|false|null $x = false`); defaultValue carries the MAY_BE_* mask (the scalar members next to a class name), className as for Typed */
430
+
TypedString, /* a `private string $x = '...'` typed property with a string default; stringValue carries the default, the type is string */
430
431
};
431
432
432
433
structProperty
@@ -436,6 +437,7 @@ struct Property
436
437
uint32_t visibility;
437
438
zend_long defaultValue;
438
439
constchar *className = nullptr; /* persistent literal: the class of a class-typed property (Typed* kinds), combined with a MAY_BE_NULL bit in defaultValue for `?Foo` */
440
+
constchar *stringValue = nullptr; /* persistent literal: the default of a TypedString property */
0 commit comments