Skip to content
Snippets Groups Projects
Commit 18645985 authored by Adam Bramley's avatar Adam Bramley
Browse files

Issue #3456589: Fix phpstan on HEAD, bump to 10.2

parent 0398d33e
No related branches found
Tags 2.0.0-beta1
3 merge requests!101Issue #3013553 by Jim.M, Berdir, sasanikolic, acbramley, Alan D.,...,!100Issue #3013553 by Jim.M, Berdir, sasanikolic, acbramley, Alan D.,...,!92Issue #3456589: Fix phpstan, bump to 10.2
Pipeline #218262 passed with warnings
......@@ -2,5 +2,5 @@ name: Diff
type: module
description: Shows changes between content revisions.
php: 8.1
core_version_requirement: ^10.1 || ^11
core_version_requirement: ^10.2 || ^11
configure: diff.general_settings
......@@ -299,11 +299,9 @@ class RevisionOverviewForm extends FormBase {
'#context' => [
'date' => $link->toString(),
// @see https://www.drupal.org/node/3407994
// @phpstan-ignore-next-line
'username' => DeprecationHelper::backwardsCompatibleCall(
currentVersion: \Drupal::VERSION,
deprecatedVersion: '10.3',
// @phpstan-ignore-next-line
currentCallable: fn() => $this->renderer->renderInIsolation($username),
deprecatedCallable: fn() => $this->renderer->renderPlain($username),
),
......
......@@ -67,11 +67,9 @@ class CoreFieldBuilder extends FieldDiffBuilderBase {
if (isset($values['value'])) {
$value = $field_item->view(['label' => 'hidden']);
// @see https://www.drupal.org/node/3407994
// @phpstan-ignore-next-line
$result[$field_key][] = DeprecationHelper::backwardsCompatibleCall(
currentVersion: \Drupal::VERSION,
deprecatedVersion: '10.3',
// @phpstan-ignore-next-line
currentCallable: fn() => $this->renderer->renderInIsolation($value),
deprecatedCallable: fn() => $this->renderer->renderPlain($value),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment