Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!5843
Issue
#3402007
: Fix strict type errors in test modules
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3402007
: Fix strict type errors in test modules
issue/drupal-3402007:3402007-strict-types-test-modules
into
11.x
Overview
29
Commits
23
Pipelines
8
Changes
13
Closed
Michael Strelan
requested to merge
issue/drupal-3402007:3402007-strict-types-test-modules
into
11.x
1 year ago
Overview
29
Commits
23
Pipelines
8
Changes
13
Expand
0
0
Merge request reports
Compare
11.x
version 7
9dd6ca0b
10 months ago
version 6
685bdfab
10 months ago
version 5
054deee2
10 months ago
version 4
e8b44dd5
1 year ago
version 3
358a523b
1 year ago
version 2
82f16b2f
1 year ago
version 1
69deae40
1 year ago
11.x (base)
and
latest version
latest version
1279cab7
23 commits,
10 months ago
version 7
9dd6ca0b
22 commits,
10 months ago
version 6
685bdfab
21 commits,
10 months ago
version 5
054deee2
20 commits,
10 months ago
version 4
e8b44dd5
22 commits,
1 year ago
version 3
358a523b
21 commits,
1 year ago
version 2
82f16b2f
21 commits,
1 year ago
version 1
69deae40
18 commits,
1 year ago
13 files
+
21
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
Search (e.g. *.vue) (Ctrl+P)
core/modules/announcements_feed/tests/modules/announce_feed_test/src/AnnounceTestHttpClientMiddleware.php
+
1
−
1
Options
@@ -20,7 +20,7 @@ public function __invoke(): \Closure {
return
function
(
$handler
)
{
return
function
(
RequestInterface
$request
,
array
$options
)
use
(
$handler
):
PromiseInterface
{
$test_end_point
=
\Drupal
::
state
()
->
get
(
'announce_test_endpoint'
);
if
(
$test_end_point
&&
str_contains
(
$request
->
getUri
(),
'://www.drupal.org/announcements.json'
))
{
if
(
$test_end_point
&&
str_contains
(
(
string
)
$request
->
getUri
(),
'://www.drupal.org/announcements.json'
))
{
// Only override $uri if it matches the advisories JSON feed to avoid
// changing any other uses of the 'http_client' service during tests with
// this module installed.
Loading