Skip to content

Commit 34276a5

Browse files
Fix error while creating select field in D10.2 and removed the unnecessary patch 3042467-50.patch (#1076)
1 parent 34dfc35 commit 34276a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
composer require wikimedia/composer-merge-plugin
9999
composer config --json extra.merge-plugin.require '["modules/contrib/apigee_edge/composer.json"]'
100100
composer config platform.php ${{ matrix.php-version }}
101-
composer config --json extra.patches."drupal/core" '{ "TypeError: FieldTypePluginManager::createFieldItem() called in FieldStorageConfig.php": "https://www.drupal.org/files/issues/2024-05-27/field-typeerror-3450175-3.patch", "Support entities that are neither content nor config entities": "https://www.drupal.org/files/issues/2020-12-02/3042467-50.patch", "Add a method to access the original property": "https://www.drupal.org/files/issues/2023-07-22/2839195-105.patch"}'
101+
composer config --json extra.patches."drupal/core" '{ "Support entities that are neither content nor config entities": "https://www.drupal.org/files/issues/2020-12-02/3042467-50.patch", "Add a method to access the original property": "https://www.drupal.org/files/issues/2023-07-22/2839195-105.patch"}'
102102
composer update --with-all-dependencies
103103
composer require --dev phpspec/prophecy-phpunit:^2
104104
composer require --dev drupal/classy:^1.0

src/Entity/AttributesAwareFieldableEdgeEntityBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function get($field_name) {
7373
$definition = $this->getFieldDefinition($field_name);
7474
// No field found with this name.
7575
if ($definition === NULL) {
76-
return NULL;
76+
throw new InvalidArgumentException(sprintf('"%s" field does not exist on "s" entity.', $field_name, get_class($this)));
7777
}
7878
// Ignore base fields, because their value should be stored in entity
7979
// properties.

0 commit comments

Comments
 (0)