Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#290 state:resolved] [#351 state:resolved] Refactored `MT::App::para…
…m()`. See full commit for bulleted highlights. * Refactored `MT::App::param()` to eliminate tangled logic introduced by bugs in `MT::App::query` (see previous commit) bugs that caused it to not report * Created package `Melody::DeprecatedParamUsage` inside `MT::App` to hold the messy warning code in `MT::App::param()`. This leaves the method looking almost like it does in MT which helps ensure that we aren't introducing bugs in the backwards compatibility of the method. * Like `Melody::DeprecatedQueryUsage`, `Melody::DeprecatedParamUsage` really needs to be moved to an official compat module for Melody deprecations and backward-compatibility because we're going to have a lot of them in the future. * Fixed bug #351 in which backwards-compatibility of `$app->param` was broken when called in a list context with no arguments (i.e. `my %param = $app->param;`). Was returning `$app->query->param` which is an array of param keys * Better deprecation warnings telling the developer exact what kind of access triggered the deprecation warning and the recommended way to update their code.
- Loading branch information