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
susgo
6bd53940c5
Merge pull request #185 from parsecsv/release-1.2.0
...
Release candidate 1.2.0
2020-01-06 19:32:41 +01:00
Fonata
a9297449b9
Autoloading: No need to explicitly mention ParseCsv\extensions
...
It is a sub-directory of src anyway.
2020-01-06 19:04:58 +01:00
Fonata
c12b6ba671
Added test for the case of objects as cells
...
I encountered this in Drupal 8, where cells implemented the
MarkupInterface. It was objects that, when cast to a string,
returned the translated string.
Before 5ca540daa7 , this new test
would fail.
2020-01-06 18:12:37 +01:00
Fonata
b792a6cc7b
Code quality: Removed superfluous brackets; should not change anything
2020-01-06 18:04:45 +01:00
Fonata
af442cdd0e
PHP closing tags are no longer common practise
2019-12-25 15:09:31 +01:00
Fonata
95810ec2fa
Updated ChangeLog.txt
2019-12-25 15:08:37 +01:00
Fonata
d79160f40a
Examples: Removed deprecated HTTML attributes from <table> tag
2019-12-25 15:06:18 +01:00
Fonata
7ba2f9b296
Added an example for a verbal comparison
2019-12-25 15:04:07 +01:00
Fonata
d7ba892d38
Bug fix for $csv->conditions = 'rating is LESS than 4'
...
The $op was wrong because of upper case
2019-12-25 14:54:50 +01:00
Jess
38e9fff285
Added financial contributors to the README
2019-12-25 07:57:32 -05:00
Fonata
174d2e6070
Merge branch 'andreybolonin-patch-1'
2019-12-25 13:49:08 +01:00
Andrey Bolonin
d93036ca87
Update .travis.yml
2019-12-25 13:47:59 +01:00
Craig Morris
62fc367c14
Run https://gist.github.com/theodorejb/763b83a43522b0fc1755a537663b1863
2019-12-25 07:45:00 -05:00