Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Merge requests
!19
Add strong typing for 3.0 version
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Add strong typing for 3.0 version
feature/strong-typing
into
devel
Overview
4
Commits
47
Pipelines
1
Changes
6
Merged
Krzysztof Dyszczyk
requested to merge
feature/strong-typing
into
devel
3 years ago
Overview
3
Commits
47
Pipelines
1
Changes
6
0
0
Merge request reports
Viewing commit
fb4e5c47
Prev
Next
Show latest version
6 files
+
30
−
75
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Unverified
fb4e5c47
fix: add missing strong types in signatures
· fb4e5c47
Bartek Jaskulski
authored
3 years ago
src/Field/Traits/HtmlAttributes.php
+
1
−
7
View file @ fb4e5c47
Edit in single-file editor
Open in Web IDE
Show full file
@@ -45,13 +45,7 @@ trait HtmlAttributes {
@@ -45,13 +45,7 @@ trait HtmlAttributes {
return
isset
(
$this
->
attributes
[
$name
]
);
return
isset
(
$this
->
attributes
[
$name
]
);
}
}
/**
public
function
get_attribute
(
string
$name
,
string
$default
=
null
):
string
{
* @param string $name
* @param ?string $default
*
* @return string
*/
public
function
get_attribute
(
string
$name
,
$default
=
null
):
string
{
return
$this
->
attributes
[
$name
]
??
$default
;
return
$this
->
attributes
[
$name
]
??
$default
;
}
}
}
}
Loading