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
Fix service access patterns for PHP 5.6 compatibility.
Replace dependency injection with service locator pattern:
- Change $this->io->method() to $this->method() calls
- Change $this->api->method() to $this->api()->method() calls
- Use $this->getService('property_formatter') with local variable
- Fix Format::format() static method call (was trying to call instance method on string)
- Fix SourceField property access (remove ->value as they're now strings, not enums)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
@@ -392,24 +395,24 @@ private function extractValue(array $point, SourceField $sourceField)
392
395
if (!isset($point['mountpoints'][$sourceField->mountpoint])) {
393
396
returnnull;
394
397
}
395
-
if (!isset($point['mountpoints'][$sourceField->mountpoint][$sourceField->source->value])) {
396
-
thrownew \RuntimeException(\sprintf('Source "%s" not found in the mountpoint "%s".', $sourceField->source->value, $sourceField->mountpoint));
398
+
if (!isset($point['mountpoints'][$sourceField->mountpoint][$sourceField->source])) {
399
+
thrownew \RuntimeException(\sprintf('Source "%s" not found in the mountpoint "%s".', $sourceField->source, $sourceField->mountpoint));
397
400
}
398
-
if (!isset($point['mountpoints'][$sourceField->mountpoint][$sourceField->source->value][$sourceField->aggregation->value])) {
399
-
thrownew \RuntimeException(\sprintf('Aggregation "%s" not found for source "%s" in mountpoint "%s".', $sourceField->aggregation->value, $sourceField->source->value, $sourceField->mountpoint));
401
+
if (!isset($point['mountpoints'][$sourceField->mountpoint][$sourceField->source][$sourceField->aggregation])) {
402
+
thrownew \RuntimeException(\sprintf('Aggregation "%s" not found for source "%s" in mountpoint "%s".', $sourceField->aggregation, $sourceField->source, $sourceField->mountpoint));
0 commit comments