Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csv_serialization
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
csv_serialization
Commits
ec574c86
Commit
ec574c86
authored
10 months ago
by
Claudiu Cristea
Committed by
James R Glasgow
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Follow interface signature
parent
8fc22917
No related branches found
No related tags found
1 merge request
!38
Issue #3272884 by Aerzas: html_entity_decode(): Passing null to parameter #1...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Encoder/CsvEncoder.php
+2
-2
2 additions, 2 deletions
src/Encoder/CsvEncoder.php
with
2 additions
and
2 deletions
src/Encoder/CsvEncoder.php
+
2
−
2
View file @
ec574c86
...
...
@@ -85,7 +85,7 @@ class CsvEncoder implements EncoderInterface, DecoderInterface {
*
* Uses HTML-safe strings, with several characters escaped.
*/
public
function
encode
(
$data
,
string
$format
,
array
$context
=
[]):
string
{
public
function
encode
(
mixed
$data
,
string
$format
,
array
$context
=
[]):
string
{
switch
(
gettype
(
$data
))
{
case
"array"
:
break
;
...
...
@@ -260,7 +260,7 @@ class CsvEncoder implements EncoderInterface, DecoderInterface {
* @throws \League\Csv\Exception
* @throws \League\Csv\Exception
*/
public
function
decode
(
$data
,
string
$format
,
array
$context
=
[])
{
public
function
decode
(
string
$data
,
string
$format
,
array
$context
=
[])
:
mixed
{
$csv
=
Reader
::
createFromString
(
$data
);
$csv
->
setDelimiter
(
$this
->
delimiter
);
$csv
->
setEnclosure
(
$this
->
enclosure
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment