Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
9d144988
Unverified
Commit
9d144988
authored
Aug 28, 2019
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
An error handler must return boolean, not void
parent
461d4247
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
phpcs.xml.dist
phpcs.xml.dist
+1
-0
MysqliConnectionTest.php
...octrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
+1
-1
No files found.
phpcs.xml.dist
View file @
9d144988
...
@@ -77,5 +77,6 @@
...
@@ -77,5 +77,6 @@
<rule
ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint"
>
<rule
ref=
"SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint"
>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ArrayType.php
</exclude-pattern>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ArrayType.php
</exclude-pattern>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ObjectType.php
</exclude-pattern>
<exclude-pattern>
lib/Doctrine/DBAL/Types/ObjectType.php
</exclude-pattern>
<exclude-pattern>
tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
</exclude-pattern>
</rule>
</rule>
</ruleset>
</ruleset>
tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php
View file @
9d144988
...
@@ -44,7 +44,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
...
@@ -44,7 +44,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
public
function
testRestoresErrorHandlerOnException
()
:
void
public
function
testRestoresErrorHandlerOnException
()
:
void
{
{
$handler
=
static
function
()
:
void
{
$handler
=
static
function
()
:
bool
{
self
::
fail
(
'Never expected this to be called'
);
self
::
fail
(
'Never expected this to be called'
);
};
};
$default_handler
=
set_error_handler
(
$handler
);
$default_handler
=
set_error_handler
(
$handler
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment