Fonata
11dbbcb40e
Simplified code - the string content is exactly the same
2022-12-26 20:29:04 +01:00
Fonata
67163568ee
Improved test name to make it easier to find
2022-12-26 20:29:04 +01:00
Fonata
6648dc99d5
Added a test for issue #177 : Saving data with commas
2022-12-26 20:29:04 +01:00
Fonata
2d6236cae0
docs(changelog): add version 1.3.2
1.3.2
2021-11-07 15:15:46 +01:00
Fonata
f2b0aecd12
docs: remove Travis from README; make running act locally easier
2021-11-07 13:36:38 +01:00
Fonata
5d4643b201
Allow _guess_delimiter to work with a single row of data
...
Fix #206
2021-11-07 13:36:38 +01:00
d5606f8b2a
ci(travis): remove .travis.yml config file
...
If we're switching to GitHub Actions, there's no need to keep the
Travis-CI config file around.
2021-11-07 13:36:38 +01:00
8cebcbd9bb
ci(github): add GitHub Actions CI workflow
...
Can be tested locally via the local-ci make target, which requires
Docker and act (https://github.com/nektos/act ).
2021-11-07 13:36:38 +01:00
518f5081fb
chore: improve editorconfig for YAML and Makefile
2021-11-07 13:36:38 +01:00
Fonata
a28fc6ab0a
refactor: simplify code without changing behavior
2021-11-07 13:36:38 +01:00
Fonata
009820d190
Explicit email address for security problems
1.3.1
2021-06-20 23:25:35 +02:00
Fonata
facdf1c06c
Set release date
2021-06-20 23:25:26 +02:00
Fonata
ee13c17157
Apply PhpStorm source code formatting
2021-06-20 23:21:46 +02:00
Fonata
99daaa7235
Bugfix: $csv->parseFile now sets $this->data
...
This adds consistency because $csv->parse() does the same.
Fix #200
Fix #201
2021-06-20 23:21:46 +02:00
Fonata
05826c2bbf
Make return value of parseFile() explicit as false if parsing failed
...
In practise this changes nothing because $this->file_data would typically be empty.
The only exception is if the object was reused from a previous parsing operation.
2021-06-20 23:21:46 +02:00
Fonata
731900effe
DocBlock types: Use Psalm notation for 2-dimensional array
2021-06-20 23:21:46 +02:00
Fonata
913c3b1b94
Source code comments: add more information to DocBlocks
2021-06-20 23:21:46 +02:00
Fonata
96b2784d3c
Source code comments: don’t repeat the field we are describing
...
The motivation for this change is how the PhpStorm IDE displays help texts.
Because the enter is shown as a space in the tooltips/help hovers, the
previous version was harder to read than after this commit.
2021-06-20 23:21:46 +02:00
Fonata
be01bc9ae4
README.md: Fix incorrect constructor usage
2021-05-03 21:26:56 +02:00
Fonata
b444afae2f
Specify release date
1.3.0
2021-04-14 20:14:01 +02:00
Fonata
bd6befe01e
Remove low-value comment
2021-04-14 20:12:43 +02:00
Fonata
05ed8ec667
Rename parameter to reduce confusion
2021-04-14 20:12:43 +02:00
Fonata
d21233c0f8
Remove Travis tests for PHP 7.0
...
It said:
> TypeError: Return value of ParseCsv\tests\properties\BaseClass::setUp() must be an instance of void, none returned
2021-04-14 20:12:43 +02:00
Fonata
7a066f9d5e
Add test for empty first parameter
2021-04-14 20:12:43 +02:00
Fonata
2425c1bbda
Deprecation: Stronger language in PHP DocBlock
2021-04-14 20:12:43 +02:00
Fonata
eb502f9dad
PHP DocBlock: use more common type name
2021-04-14 20:12:43 +02:00
Fonata
0af6e98670
Tests should not produce output - capture it
2021-04-14 20:12:43 +02:00
Fonata
b38d0de800
Add test for getTotalDataRowCount without loading data
2021-04-14 20:12:43 +02:00
Fonata
e15d144e27
Adjust call to static function
2021-04-14 20:12:43 +02:00
Fonata
4518e944c4
Adjust function signatures for newer PHPUnit versions
...
Will make an update to PHPUnit 8 or 9 easier.
2021-04-14 20:12:43 +02:00
Fonata
3ce6a82052
Make deprecation clearer
2021-04-14 20:12:43 +02:00
Fonata
abae91a1a2
Make condition easier to read; no change in logic
2021-04-14 20:12:43 +02:00
Fonata
45f079b5dd
Code comment for future me: I was afraid the code would surprise users
2021-04-14 20:12:43 +02:00
Fonata
fba67b84ff
More consistent formatting
2021-04-14 20:12:43 +02:00
Fonata
2a154869b4
Fix PHP DocBlock: some tools thought the function always returns true
...
(Also, there was a spelling mistake)
2021-04-14 20:12:43 +02:00
Fonata
d1186fcafa
Deprecate support for file paths in __construct() and parse()
...
See https://github.com/parsecsv/parsecsv-for-php/issues/198
2021-04-14 20:12:43 +02:00
Fonata
9c5eee23f6
Fix examples in README.md: add missing semicolons
2021-04-14 20:12:43 +02:00
Fonata
6a54a6a509
Move parsing of .php files (sic!) to _rfile for easier refactoring
...
Note that this arcane code comes from v0.2.0 beta:
5f0e6b03d4
2021-04-14 20:12:43 +02:00
Fonata
8277b9682d
Ignore files on the root directory only
2021-04-14 20:12:43 +02:00
Fonata
0e54a2b9fa
Make testing easier
2021-04-14 20:12:43 +02:00
Fonata
9c35237b1b
README: make sure examples can be used in namespaced files
2020-12-15 16:20:14 +01:00
Fonata
1528a1f6ae
README.md: fix the function name fix from my last commit
2020-12-07 18:13:09 +01:00
Fonata
aadb654edf
Fix incorrect function name in README.md
...
Closes #195
2020-11-12 06:40:58 +01:00
Sergei Morozov
8069409c73
Add .gitattributes
2020-05-10 14:57:29 +02:00
Fonata
947b1c0866
Removed PHPUnit <6 compat wrapper
1.2.1
2020-04-25 19:17:04 +02:00
Petri Haikonen
a3981edb84
Added some annotations to tests
2020-04-25 19:17:04 +02:00
Petri Haikonen
b4e4c14b42
PHPUnit 6 instead of 4, to get rid of wrapper
...
The TestCase wrapper caused PhpStorm to show warnings about
multiple implementations
Fixes #188
Improved some type hints in DocBlocks
2020-04-25 19:17:04 +02:00
Fonata
89429ebd60
Cleaned up README
2020-04-25 19:17:04 +02:00
Fonata
548a9fe551
ChangeLog: Added release date
1.2.0
2020-01-07 09:32:12 +01:00
susgo
5336800ec6
Merge pull request #186 from parsecsv/bu-object-test
...
Added test for the case of objects as cells
2020-01-06 19:35:23 +01:00