mago
mago copied to clipboard
Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.
### Feature I would like `check-throws` to be more configurable in the same way as phpstan: https://phpstan.org/blog/bring-your-exceptions-under-control Features requested: 1. Unchecked Exceptions Mark specific exception classes as *unchecked* so they...
### Feature Hello, We would like to use `excessive-parameter-list` with something strict, but it doesn't play well with Doctrine entities, they typically have a lot of parameters in the constructor,...
### π Describe the Bug `mago analyze` crash when I run it in a PHP project β see output below. The PHP source code is valid (code coverage + Psalm),...
This doesn't work: https://mago.carthage.software/playground#019ad6b8-df92-5eb6-741e-43fafe3b9e98 > > βAnalyzer mixed-argumenterror > Invalid argument type for argument #1 of `strtoupper`: expected `string`, but found `nonnull`. > Line 11:21Argument has type `nonnull` > Line...
### π Describe the Bug See: https://mago.carthage.software/playground#H4sIAAAAAAAAA31RS0vDQBD-K2HpoUIVBA8SX9RUrVihaHsyIttk0i5uZsLuxjQN-e9OUhvbg-5pdr7HvCoRCV9c3mSrLMQQY4i0NNC3zqjIfbgyA3t1enTRYIxY6w29KkSPX4j1XtaxYJE7CNpv1UI96V15CIUXhi-QaIicImwJ_aHvt8Ktc0_u5JYVPXl8vQTXWTL7wL2TioH44ubPT844ksKvRKIwnmNuIb5bZwas5YJW-InUFgZ76Ag4Vu4AlSh1uYERyDigGLp8CimpDUwNZWCcAlY4kzcCramYEhdZ6HLOq2NPiIfGyPIJyo4WrSD6nK0MFb-12Ckhk44hN8o6FQUNp1Nslz9h5JFd1zvwR4t0S6RB4kQ5MFIHlGaSbQg7SlvyWXFnuJzxCccKnT1EA002N_A_iWeh4j7H9nB_Ug0suVUwrzmP9aBpwentKPVA6OYssfDf3uv6G1h-Q1xsAgAA ### π Steps to Reproduce playground ### βοΈ Configuration (mago.toml) ```toml / ``` ### π Command Output ```shell invalid argument type for argument...
### π Describe the Bug When running `mago format` one file is changed every run. I made a small example that has this problem. I tested it and has anything...
### π Describe the Bug literal-float is not recognized as a type ### π Steps to Reproduce https://mago.carthage.software/playground#H4sIAAAAAAAAA6WST0sjQRDFv0rTeNAQlQUPMiq7bvyLCgH15CxLZ7omKeypaqp6TMaQ7y7jJHE9aA57K_r93nt0V89tYTN7_DNOovFQBCewrUmwSH9TE0FPfuwc5ZQTUgIpXQHmOqd5TsYYs9_rdYPpmV_RiatMwATiwm4bQWOzhRTrtIL2u6GsqUjIZHS7whn4JbWTmRdGf9RBGxuQ0oZ4_J_4MrDbVFB-UbDIyfbti83s4d6B7Vtns7ktkfwj1Qr-fBYFVJFJbVa6oND_Rz2DEgnTJ9WRC80rnIHzA_awPq-gYnyFoXAESQhqsyR1awiBp0NWxVFoHsm3meBPRVxzA80aKyZQPD9MhKcfXRGkZKmuoBbUhMWgZdaO7mvcoqZr8jBbiUsv8W_mAI5uu1cccBWdoDKtkffKO1RFGj80Ea6Qkn5WB4G1FvgeOhXh6cVyE1-iAmPUBHJfR5DLwCMXlldZ9G1o1-Jt9vRnsXgD3AK-JAcDAAA ### βοΈ Configuration (mago.toml) ```toml # default playground config ``` ### π...
### π Describe the Feature It can be useful sometimes to indicate that an argument or return value should not be of a certain type (another way of narrowing the...
### π Describe the Bug Calling `mago fmt` on any PHP files just returns " INFO All files are already formatted." without formatting anything. The files do not meet the...
### π Describe the Bug Getting a error[template-constraint-violation] false positive in the example below ### π Steps to Reproduce * Run `mago analyse` with the (default) config and sample below...