Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
time_field
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
time_field
Commits
4a9f40f7
Commit
4a9f40f7
authored
2 years ago
by
h1nds1ght
Committed by
Bram Driesen
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3269302
by sgostanyan, h1nds1ght: Deprecated function : trim() with PHP 8.1
parent
daa1974c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/Field/FieldType/TimeRangeType.php
+2
-2
2 additions, 2 deletions
src/Plugin/Field/FieldType/TimeRangeType.php
src/Plugin/Field/FieldType/TimeType.php
+1
-1
1 addition, 1 deletion
src/Plugin/Field/FieldType/TimeType.php
with
3 additions
and
3 deletions
src/Plugin/Field/FieldType/TimeRangeType.php
+
2
−
2
View file @
4a9f40f7
...
...
@@ -68,8 +68,8 @@ class TimeRangeType extends FieldItemBase {
* {@inheritdoc}
*/
public
function
isEmpty
()
{
$from
=
$this
->
get
(
'from'
)
->
getValue
();
$to
=
$this
->
get
(
'to'
)
->
getValue
();
$from
=
$this
->
get
(
'from'
)
->
getValue
()
??
''
;
$to
=
$this
->
get
(
'to'
)
->
getValue
()
??
''
;
return
trim
(
$from
)
===
''
||
trim
(
$to
)
===
''
;
}
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Field/FieldType/TimeType.php
+
1
−
1
View file @
4a9f40f7
...
...
@@ -83,7 +83,7 @@ class TimeType extends FieldItemBase {
* {@inheritdoc}
*/
public
function
isEmpty
()
{
$value
=
$this
->
get
(
'value'
)
->
getValue
();
$value
=
$this
->
get
(
'value'
)
->
getValue
()
??
''
;
return
trim
(
$value
)
===
''
;
}
...
...
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