1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
Commit Graph

120 Commits

Author SHA1 Message Date
Matt Brown
05aaf63dbb
Ignore ReflectionUnionType 2021-01-29 11:46:06 +01:00
Brown
c96ba8d1f5
Add some backwards-incompatible changes for 4.x 2021-01-29 11:38:48 +01:00
Bruce Weirdan
22d8f5a0bc
Fixed duplicate shortcodes (#3996)
Also added an utility to help assign new shortcodes and a test to
prevent duplicate shortcodes.
2020-08-16 16:26:54 -04:00
Matthew Brown
6ed7a81146 Remove PSL from test-with-real-projects 2020-08-03 12:05:21 -04:00
Saif Eddin G
ee8619f7bb
Test with PHP-Standard-Library (#3768) 2020-07-07 17:12:07 -04:00
Brown
30db5d10cf Add laravel/framework fork to test-with-real-projects 2020-06-15 17:24:23 -04:00
Bruce Weirdan
7f5580d326
Run every project as separate step (#3076)
It's easier to see which project is failing this way
2020-04-05 20:25:50 -04:00
Matthew Brown
f0f9b2d01b Add suffix 2020-03-19 12:34:48 -04:00
Matthew Brown
2f62e2d9f5 Move issues to separate pages 2020-03-19 12:32:49 -04:00
Matthew Brown
2d69349cd4
Remove you-are-using-it-wrong test 2020-02-20 14:16:03 -05:00
Matthew Brown
ced092874a Make config generation smarter 2020-02-17 22:05:58 -05:00
Brown
4cd4e1750d Use up-to-date hash 2020-02-06 19:45:15 -05:00
Matthew Brown
39a4828bc2 Use specific hash 2020-01-30 00:39:37 -05:00
Matthew Brown
887a635a47 Use my fork 2020-01-14 01:24:27 -05:00
Andreas Möller
3eebed6c33 Fix: Remove unused friendsofphp/php-cs-fixer (#2603)
Co-authored-by: Matthew Brown <github@muglug.com>
2020-01-12 10:52:33 -05:00
Matthew Brown
c586b6458d Use my fork of ProxyManager 2020-01-12 10:38:13 -05:00
Brown
230991e767 Remove you-are-using-it-wrong unit tests
cc @ocramius
2020-01-02 13:25:21 -05:00
Brown
f842b5acd7 Fix ref 2020-01-02 12:42:33 -05:00
Brown
3aa6362d0b Fix test-with-real-projects 2020-01-02 11:09:38 -05:00
Matthew Brown
608ca417bc Add reference to bugfix commit 2020-01-01 18:10:26 -05:00
Matthew Brown
7b180ed091 Fix testing with real projects 2020-01-01 17:45:28 -05:00
Matthew Brown
033b610770 Fix composer checks once more 2020-01-01 17:29:30 -05:00
Matthew Brown
e70a282bce Fix require checker config 2020-01-01 17:23:40 -05:00
Matthew Brown
7ea6c8097d Add config 2020-01-01 17:03:28 -05:00
Marco Pivetta
b26c57237f Ensure BC of API, compat with roave/you-are-using-it-wrong, completeness of composer.json (#2140)
* Test against `roave/you-are-using-it-wrong`

* Added CI step to ensure BC of declared API

* Added step to ensure `composer.json` has all used deps

* Including CI check tools as dev dependencies

* Typo fix: s/backwards/backward

* Run `roave/backward-compatibility-check` off an isolated location with no other dependencies

* Run `test-with-real-projects` task with PHP 7.4 as base runtime

* Run `testing-with-real-projects` also against `ocramius/proxy-manager`

`ocramius/proxy-manager` is an extremely heavy `vimeo/psalm` consumer,
and relies on a lot of the templated types system to generate real
types for proxies produced by runtime evaluation.
2020-01-01 13:55:33 -05:00
Matthew Brown
1b4bda4e08
Go back to upstream 2020-01-01 12:32:03 -05:00
Matthew Brown
8e54e3aa06
Use forked collections for now 2019-12-29 11:11:07 -05:00
Bruce Weirdan
e3e3296dd9 Test doctrine collections (#2524)
* Added doctrine/collections to the list of real projects to test with

* Don't use phar version to check doctrine/collections
2019-12-28 20:51:39 -05:00
Matthew Brown
bdb2f3c2be Use fork for now 2019-12-27 17:10:16 -05:00
Matthew Brown
f48773e931 bump phpunit commit 2019-12-01 14:22:56 -05:00
Matthew Brown
4a2822eb24
Bump release 2019-09-14 15:50:21 -04:00
Matthew Brown
8f29db2408 Reduce output of PHPUnit test 2019-08-13 00:01:35 -04:00
Matthew Brown
aa0efcf026 Add PHPUnit static analysis tests to real project settings 2019-07-09 07:39:03 -04:00
Brown
d573a3e48d Use monochrome output when checkingg other projects 2019-06-17 17:00:38 -04:00
Barney Laurance
4e3a208ec3 Add circleci config file 2019-06-16 09:04:56 -04:00
Matthew Brown
b13eaa20d2 Fix namespacing of generated if 2019-06-08 20:27:49 -04:00
Matthew Brown
0d40fdaaa0 Add false arg 2019-06-08 20:10:51 -04:00
Matthew Brown
7f258100f2 Remove blank line 2019-06-08 20:03:46 -04:00
Matthew Brown
bfbe9a527a Hack around PHP 7.3 polyfill scoping 2019-06-08 19:51:47 -04:00
Barney Laurance
d44be5eb9c Allow deploying phar to any github repository
Potentially useful for fork owners to test out phar deployment without affecting
the official psalm/phar repo.

To enable phar deployments from your own fork of psalm:

- Enable builds with Travis
- Create a github repository to hold recieve the built phar packages
- Create a new dedicated github user for the deployments
- From your main github account, invite the new user to collobrate on the phar repository
- From the new user's account, accept the invitation
- From the new user's account, obtain a 'new personal access token' ( https://github.com/settings/tokens/new ) with repo scope

- In travis settings for your fork of psalm, set two environment
variables:

- PHAR_REPO_SLUG - this should be the name the phar repo you set up earlier, e.g. fred/phar
- GITHUB_TOKEN - This is the personal access token of the new user you obtained above. Anyone who knows this token
                 can push to the repository, so keep it secret. Make sure 'Display value in build log' is
                 switched off'

Now any push to branches in your fork of psalm, should automatically
result in a commit containing the phar file in your phar repository.
2019-06-08 09:46:08 -04:00
Barney Laurance
91c11a0443 Simpler globbing for travis deploy
Previous versions failed. This will delete all files except hidden files. The only hidden files that we expect to exist at present are the .git directory and .gitignore
2019-06-07 08:33:02 -04:00
Barney Laurance
80837267e7 Fix syntax error in travis deploy script
This should resolve the build failure https://travis-ci.org/vimeo/psalm/jobs/542700463
2019-06-07 07:49:07 -04:00
Barney Laurance
673661c6da Exit build-phar script on any error 2019-06-07 06:52:07 -04:00
Barney Laurance
fee7a7be43 Set travis deploy phar script to exit at first error 2019-06-07 06:52:07 -04:00
Barney Laurance
eecd21a7d5 Add executable PHP files to PHAR distribution
Previously a user of the phar distribution would have to invoke psalm as
`vendor/bin/psalm.phar`. This is different to the command given in
the psalm documentation, `vendor/bin/psalm`

I also copied all files from the psalm/phar repo into
assets/psalm-phar, so that development can be concentrated in this repo.

The travis-deploy-phar.sh should copy any changes made back into the
psalm/phar.git repo.
2019-06-07 06:52:07 -04:00
Bruce Weirdan
e6f4f27498 Simplify build config by using repo filter
Also deploy signature to psalm/phar repo (because why not)
2019-06-02 11:25:53 -04:00
Bruce Weirdan
96521a6469 Rearrange build/sign/deploy
- Phar signing moved to build-phar.sh (conditional on gpg keys
availability)
- Tagged phar releases moved to travis-deploy-phar.sh
- `travis-deploy-phar.sh` is now triggered via `script` deploy provider
2019-06-02 11:25:53 -04:00
Brown
3a11e1ff5b Set better permissions on Travis deploy script 2019-03-25 16:32:36 -04:00
Brown
bdf0889b4a Fix phar deployment 2019-03-25 13:40:17 -04:00
Bruce Weirdan
a338e76ef6 Plugin interface segregation (#1076)
* Split Plugin into PluginApi\Hook\* interfaces

* dropped Psalm\Plugin

* updated docs

* s/PluginApi/Plugin/g
2018-11-12 11:20:59 -05:00