-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No deprecation #92
No deprecation #92
Conversation
Fixed deprecation errors, changed unit tests to use newer methods.
removed older classes/methods
Can you resolve the conflict? |
Don't forget to also adjust composer then and set proper min version for the framework |
I've resolved the conflict, regardless, tests do not pass because I'm still using the deprecated method type() instead of withType(), because withType() does not properly replace type() for new types. Meaning I am just using type(). Deprecation errors come through due to this though. I wasn't sure if I should just file a separate issue in the cakephp github. But I would need to set up a test to make sure that I'm right about withType not handling new types like type() did. Oh shnap. It seems tests are actually going through on some places? Maybe all I need to do is run codesniffer on this stuff and I suppose update composer? |
changes to composer to disclude non-compatible versions of cake
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
=========================================
Coverage 97.63% 97.63%
Complexity 55 55
=========================================
Files 1 1
Lines 127 127
=========================================
Hits 124 124
Misses 3 3
Continue to review full report at Codecov.
|
fixed the missing comma now
Changes to satisfy some PSR standards, for some reason bootstrap.php is failing in one of the tests, so this is also an attempt to fix that.
3.4 is now the minimum
Now min 3.5 with PHP 5.6
I'm baffled at the Fatal error: Call to undefined method Cake\Http\Response::getType() in /home/travis/build/FriendsOfCake/cakephp-csvview/tests/TestCase/View/CsvViewTest.php on line 41 |
Alright so getType is not included until 3.5.5 my bad, will fix this when I get home |
I helped. |
changed requirements in readme
Fixed up the readme. |
Now we just need to fix CS. |
I tried my best to make it deprecation free in CakePHP 3.6. As a result it's probably not BC with CakePHP versions less than 3.5. I've also updated the documentation for the new withDownload method.