Matias Griese
3f9ed2f344
Flex User: do not use deprecated method
2019-12-10 12:46:46 +02:00
Matias Griese
a65c468e81
Minor update on Twig tags
2019-12-09 12:53:17 +02:00
Matias Griese
8afe004a7f
Improve plugin testing
2019-12-06 18:49:10 +02:00
Matias Griese
b314ea13aa
Merge branch 'develop' of github.com:getgrav/grav into 1.7
2019-12-04 09:55:35 +02:00
Matias Griese
ad8d0a2ab1
Updated plugins phpstan to work with Gantry5 plugin
2019-12-03 19:29:04 +02:00
Matias Griese
9044721c89
Minor bug fixes
2019-11-18 12:05:31 +02:00
Matias Griese
571674a4f5
Fixed phpstan issues in all code up to level 3
2019-11-15 14:03:52 +02:00
Matias Griese
a06520337f
Fully comply phpstan level2!
2019-11-15 13:21:20 +02:00
Matias Griese
f0c12e6246
Fixed a few type hints
2019-11-15 09:00:48 +02:00
Matias Griese
f9f836959c
Reverting (git) moved folders leave empty folders which break Flex Pages
2019-10-24 12:36:14 +03:00
Matias Griese
c4ce2d1648
Misc minor code quality fixes
2019-10-24 11:26:04 +03:00
Matias Griese
913efdbd6a
Revert multiple changes as many of those break Grav functionality [ #2699 ]
2019-10-22 15:20:35 +03:00
Matias Griese
9c123f7d3d
Merge remote-tracking branch 'rlerdorf/1.7' into 1.7
2019-10-22 12:35:27 +03:00
Andy Miller
2b00e93f22
Merge branch 'develop' into 1.7
...
# Conflicts:
# composer.json
2019-10-17 10:02:36 -06:00
Jérôme Nadaud
ab6b82eaaa
Fix cache image generation when using cropresize ( #2639 )
2019-10-17 05:56:46 -06:00
Rasmus Lerdorf
32a9acc62e
Add a .phan config file and stubs for Phan static analysis
...
I fixed some small inconsistencies here and there. There are still
a little over 200 to go. This time against the 1.7 branch.
To try it, checkout this PR and run:
composer require phan/phan
It doesn't have to be in the Grav tree. You can install it anywhere.
Then from the top-level Grav dir:
/vendor/bin/phan -p
You can see the ones that are left to address here:
https://gist.github.com/69eac9b37ced1cadc08ed4be0ee84f40
Also, and the main reason I added it, was to get some nice
dependency graphs from Phan to help me understand the Grav code. Some
examples:
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\File\CompiledFile&d=3
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\Filesystem\Folder&d=1
http://pdep.lerdorf.com/?mode=class&node=\Doctrine\Common\Cache\Cache&d=2
http://pdep.lerdorf.com/?mode=class&node=\RocketTheme\Toolbox\ArrayTraits\Export&d=1
Move the slider to change the number of dependency levels shown.
2019-10-16 10:38:08 -07:00
Matias Griese
467c33d3e1
More phpstan issues
2019-10-16 09:48:22 +03:00
Patric Johansson
4bba284bf5
Update Core to follow PSR-2 standard
2019-10-15 13:33:48 +03:00
Matias Griese
90c2079529
Fixed wrong Pages::dispatch() calls (with redirect) when we really meant to call Pages::find()
2019-09-13 22:39:46 +03:00
Matias Griese
22acffac5c
Update Pages unit tests
2019-08-22 15:16:27 +03:00
Andy Miller
3ac785b9ce
Fix for changed location of phpdebug CSS
2019-06-28 14:47:13 -06:00
Matias Griese
94494c3c96
Merge branch 'develop' of github.com:getgrav/grav into 1.7
2019-06-28 13:37:39 +03:00
Matias Griese
69b39b4b21
Fixed multiple url() issues with streams
...
* Fixed `url()` returning wrong path if using stream with grav root path in it, eg: `user-data://shop` when Grav is in `/shop`
* Fixed `url()` not returning a path to non-existing file (`user-data://shop` => `/user/data/shop`) if it is set to fail gracefully
* Fixed `url()` returning false on unknown streams, such as `ftp://domain.com`, they should be treated as external URL
2019-06-28 13:36:37 +03:00
Matias Griese
6974a24669
Some phpstan fixes
2019-06-02 20:30:56 +03:00
Andy Miller
d227a82056
Fixed regresssion issue of Utils::Url() not returning false on failure #2524
2019-05-27 11:58:53 +03:00
Andy Miller
cfcd955cc2
Fixed regresssion issue of Utils::Url() not returning false on failure #2524
2019-05-27 11:58:31 +03:00
Matias Griese
37f69d89cc
Some phpstan level 6 fixes
2019-05-20 10:52:32 +03:00
Matias Griese
99d0c7cb3e
Generalized markdown classes so they can be used outside of Page scope with a custom Excerpts class instance
2019-05-17 14:48:12 +03:00
Andy Miller
d54387b281
Backwards compatiblity with old Uri::__toString() output
2019-04-15 19:21:14 -06:00
Andy Miller
ad173ca129
Improved redirect_default_route logic as well as Uri::toArray() to take into account root_path and extension
2019-04-15 12:44:48 -06:00
Andy Miller
40563ed2f8
Better Utils::normalizePath() logic #2216
2019-04-13 12:21:54 -06:00
Andy Miller
ef7b33f9b6
Fixed issue with Utils::normalizePath messing with external URLs #2216
2019-04-12 07:55:51 -06:00
Andy Miller
66bba376db
minor fixes and tests for Utils::url
2019-04-11 07:30:12 -06:00
Andy Miller
8512968726
this closes #2432
2019-04-05 17:38:45 -06:00
Andy Miller
397f6902f3
Improved Utils::normalizePath() to support non-protocol URLs
2019-04-03 16:52:52 -06:00
Matias Griese
5995515419
Added detection for deprecated features into phpstan
2019-03-19 13:37:02 +02:00
Matias Griese
33282e043b
Added composer test-plugins to test plugin issues with the current version of Grav
2019-03-18 10:58:21 +02:00
Matias Griese
ada6c3f160
Fixed phpstan level 4 and 5 errors in Grav\Framework
2019-03-14 14:06:53 +02:00
Matias Griese
8789fd91ee
Fixed/silenced the remaining phpstan level 2 issues
2019-03-14 09:01:16 +02:00
Matias Griese
30b013f5b0
Fixed most phpstan level 2 issues in Grav\Common
2019-03-13 22:22:03 +02:00
Matias Griese
fde69ade6b
Fixed some phpstan level 2 issues in Grav\Console
2019-03-13 19:46:06 +02:00
Matias Griese
db8e5b3cbb
Merge remote-tracking branch 'origin/1.6' into 1.6
2019-03-13 15:21:18 +02:00
Matias Griese
b0b6c1dd17
Fixed some more phpstan level 2 issues
2019-03-13 15:21:09 +02:00
Sébastien Vanvelthem
47bb35e2e9
Preliminary tests for CsvFormatter::encode + minor fix for empty data ( #2405 )
2019-03-13 15:02:46 +02:00
Matias Griese
2433e0d2cd
Fixed phpstan level 2 issues in Grav\Framework
2019-03-13 14:28:16 +02:00
Matias Griese
39b1940f94
Fixed phpstan level 1 issues
2019-03-13 10:16:47 +02:00
Matias Griese
8564524984
Fixed some bugs found by phpstan
2019-03-13 09:49:08 +02:00
Sébastien Vanvelthem
ecd39421d6
Some phpstan issues ( #2393 )
...
* Fix bug, method init must be protected
* Added phpstan level 0
* Added exclusions
* Fix: incorrect case in Twig_SimpleFunction
* Fix, no abstract properties, if properties used in methods let's set them
* Fixed Psr\SimpleCache\InvalidArgumentException referenced with incorrect case
* added exclusions
* Fixed: Access to an undefined property Grav\Framework\Form\FormFlash::$uploadObjects.
* Fixed: does not call parent constructor from Grav\Common\Iterator.
* Fixed: does not call parent constructor from Grav\Common\Iterator.
* Fixed: does not call parent constructor
* Fixed: does not call parent constructor
* Minor: correct type for inflector
* Moved phpstan.neon out of public directory
* Added exclusion
* set GRAV_USER_INSTANCE to prevent LogiException in User
* Exlude Stream:create
* Minor: Missing storage property
* Minor: Fixed missing properties (phpstan level 1)
* Added type for $data
* Minor: Ensure $langs is initialized
* Fix possible bug in $http_response_header status code retrieval (PHP 7.1 only)
* Added exclusion for $http_response_header (isset is actually not required)
* Strict null check
2019-03-13 08:15:22 +02:00
Matias Griese
4e03f19bac
Update all classes to rely on PageInterface instead of Page class
2019-03-05 15:29:39 +02:00
Matias Griese
b19cb1215b
Fix tests
2018-12-03 13:55:32 +02:00