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
b479cbdd
Commit
b479cbdd
authored
Jun 27, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBAL-26 - Add strict null check
parent
bb2ffc4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
DateTimeType.php
lib/Doctrine/DBAL/Types/DateTimeType.php
+2
-2
DateTimeTzType.php
lib/Doctrine/DBAL/Types/DateTimeTzType.php
+2
-2
DateType.php
lib/Doctrine/DBAL/Types/DateType.php
+2
-2
TimeType.php
lib/Doctrine/DBAL/Types/TimeType.php
+2
-2
No files found.
lib/Doctrine/DBAL/Types/DateTimeType.php
View file @
b479cbdd
...
...
@@ -46,8 +46,8 @@ class DateTimeType extends Type
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
!
$value
)
{
return
$value
;
if
(
$value
===
null
)
{
return
null
;
}
$val
=
\DateTime
::
createFromFormat
(
$platform
->
getDateTimeFormatString
(),
$value
);
...
...
lib/Doctrine/DBAL/Types/DateTimeTzType.php
View file @
b479cbdd
...
...
@@ -66,8 +66,8 @@ class DateTimeTzType extends Type
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
!
$value
)
{
return
$value
;
if
(
$value
===
null
)
{
return
null
;
}
$val
=
\DateTime
::
createFromFormat
(
$platform
->
getDateTimeTzFormatString
(),
$value
);
...
...
lib/Doctrine/DBAL/Types/DateType.php
View file @
b479cbdd
...
...
@@ -46,8 +46,8 @@ class DateType extends Type
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
!
$value
)
{
return
$value
;
if
(
$value
===
null
)
{
return
null
;
}
$val
=
\DateTime
::
createFromFormat
(
'!'
.
$platform
->
getDateFormatString
(),
$value
);
...
...
lib/Doctrine/DBAL/Types/TimeType.php
View file @
b479cbdd
...
...
@@ -55,8 +55,8 @@ class TimeType extends Type
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
!
$value
)
{
return
$value
;
if
(
$value
===
null
)
{
return
null
;
}
$val
=
\DateTime
::
createFromFormat
(
$platform
->
getTimeFormatString
(),
$value
);
...
...
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