Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledge
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
knowledge
Commits
311863e7
Commit
311863e7
authored
4 months ago
by
Steven Ayers
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3474917
: Trying to access array offset on value of type null
parent
a97f1706
No related branches found
No related tags found
1 merge request
!9
Issue #3474917 by bluegeek9: Trying to access array offset on value of type null
Pipeline
#285356
failed
4 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/KnowledgeStatistics.php
+2
-2
2 additions, 2 deletions
src/KnowledgeStatistics.php
with
2 additions
and
2 deletions
src/KnowledgeStatistics.php
+
2
−
2
View file @
311863e7
...
...
@@ -438,7 +438,7 @@ class KnowledgeStatistics implements KnowledgeStatisticsInterface {
protected
function
doStateCountAction
(
$count
,
$citation
,
$entity
)
{
$confidence
=
$entity
->
get
(
'moderation_state'
)
->
value
;
$transition
=
$this
->
getNextState
(
$confidence
);
$next_state
=
$transition
[
'to'
];
$next_state
=
$transition
[
'to'
]
??
NULL
;
if
(
is_null
(
$next_state
))
{
return
;
}
...
...
@@ -449,7 +449,7 @@ class KnowledgeStatistics implements KnowledgeStatisticsInterface {
if
(
is_null
(
$config
))
{
return
;
}
$action
=
$config
[
'action'
];
$action
=
$config
[
'action'
]
??
'none'
;
if
(
$action
==
'none'
)
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment