Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
languagevisibility
Commits
7bfce8c2
Commit
7bfce8c2
authored
Jun 18, 2020
by
Fabio Stegmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] make return type of function nullable
parent
4558a25e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Classes/Hook/TceMainHook.php
Classes/Hook/TceMainHook.php
+2
-2
No files found.
Classes/Hook/TceMainHook.php
View file @
7bfce8c2
...
...
@@ -269,11 +269,11 @@ class TceMainHook {
* @param array $data
* @param integer $res (but only 0 and 1 is relevant so it's boolean technically)
* @param $tcemain
* @return integer
* @return integer
|NULL
* @throws Exception
* @internal param object $this
*/
public
function
checkRecordUpdateAccess
(
$table
,
$id
,
$data
,
$res
,
$tcemain
):
int
{
public
function
checkRecordUpdateAccess
(
$table
,
$id
,
$data
,
$res
,
$tcemain
):
?
int
{
$queryBuilder
=
GeneralUtility
::
makeInstance
(
ConnectionPool
::
class
)
->
getQueryBuilderForTable
(
$table
);
$queryBuilder
->
getRestrictions
()
->
removeAll
()
->
add
(
GeneralUtility
::
makeInstance
(
DeletedRestriction
::
class
));
$row
=
$queryBuilder
->
select
(
'*'
)
...
...
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