Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assert-function-signature
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Kuchař
assert-function-signature
Merge requests
!3
simple support for mixed pseudo-type
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
simple support for mixed pseudo-type
support-for-mixed-pseudotype
into
master
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
Jan Kuchař
requested to merge
support-for-mixed-pseudotype
into
master
6 years ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
cc
@jpudil
0
0
Merge request reports
Viewing commit
09630f08
Show latest version
3 files
+
34
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
09630f08
simple support for mixed pseudo-type
· 09630f08
Jan Kuchař
authored
6 years ago
src/FunctionSignatureAssertionError.php
+
8
−
0
Options
@@ -91,4 +91,12 @@ final class FunctionSignatureAssertionError extends \AssertionError {
"Expected return type of type '
$expectedReturnType
', but given function declares '
$actualReturnType
'."
);
}
public
static
function
parameterDoesNotAcceptAllRequiredValues
(
\ReflectionFunction
$reflection
,
\ReflectionType
$reflectionType
)
:
self
{
return
new
self
(
$reflection
,
"Parameter of given function does not accept all required values. Parameter restricts input values to
{
$reflectionType
}
, assertion requires mixed. (=must accept everything)"
);
}
};
Loading