Skip to content

Commit

Permalink
Fix error while creating select field in D10.2 and removed the unnece…
Browse files Browse the repository at this point in the history
…ssary patch 3042467-50.patch (#1076)
  • Loading branch information
shishir-intelli authored Aug 27, 2024
1 parent 34dfc35 commit 34276a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
composer require wikimedia/composer-merge-plugin
composer config --json extra.merge-plugin.require '["modules/contrib/apigee_edge/composer.json"]'
composer config platform.php ${{ matrix.php-version }}
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"}'
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"}'
composer update --with-all-dependencies
composer require --dev phpspec/prophecy-phpunit:^2
composer require --dev drupal/classy:^1.0
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/AttributesAwareFieldableEdgeEntityBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function get($field_name) {
$definition = $this->getFieldDefinition($field_name);
// No field found with this name.
if ($definition === NULL) {
return NULL;
throw new InvalidArgumentException(sprintf('"%s" field does not exist on "s" entity.', $field_name, get_class($this)));
}
// Ignore base fields, because their value should be stored in entity
// properties.
Expand Down

0 comments on commit 34276a5

Please sign in to comment.