All Versions
17
Latest Version
Avg Release Cycle
60 days
Latest Release
1566 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.10.5 Changes
December 04, 2020๐ New:
- PsySH + PHP 8.0 == <3
- Better function signature rendering in PHP 8.0.
- Support rendering union types in PHP 8.0.
- Add return types to function signatures when available.
- Fix tab completion for namespaced classes in PHP 8.0.
- Get all tests passing in PHP 8.0!
- ๐ท All-new CI setup, improved testing:
- Move testing and releases from Travis to GitHub Actions (Thanks for all the help on this, @GrahamCampbell!)
- Update a ton of tests to work on the latest PHPUnit.
- Test PHP 8.0 on CI.
- Drop CI tests for HHVM. It doesn't play nice with Composer 2 :-/
๐ Improved:
- ๐ Improve pre-built phar version strings (to make reporting bugs easier!)
- ๐ Fix unintentional slash normalization when printing exception messages
- ๐ Fix
instanceof
check in PHP 7.3+ - ๐ Make error messages for read-only temp dirs more clear (Thanks @shapito27)
- ๐ Fix error when
HOMEDRIVE
is undefined on Windows (Thanks @emargareten!) - ๐ Fix class existence validation in the unexecuted half of ternaries.
- ๐ Use catchable errors for
new
, class constant fetch, and static calls with non-existant classes in PHP 7+, rather than preventing them entirely. - Write code executed to stderr when running with
--debug
verbosity. - ๐ Better bracketed paste support detection.
- Prevent fatal errors on isset() calls.
- Load user-defined includes using
include_once
. Prevents issues when multiple interactive sessions happen in the same request (Thanks @Aryess!) - ๐ Use a less-strict shell history signature check. Fixes issues with some Libedit-based readline libraries.
- ๐ Fix requiring local files when running from a pre-built Phar.
- ๐ Code style updates (Thanks @GrahamCampbell!)
- ๐ Even more code style updates!
- PsySH + PHP 8.0 == <3
-
v0.10.4 Changes
May 03, 2020๐ New:
- ๐จ Print exception traces when running
--verbose
or higher. - โ Add an
--all
option to thedoc
command for showing inherited docs. - Include class signatures when using
doc
on class methods or properties. - โ Add graceful handling for invalid return types.
- โ Add a notice when globally-installed PsySH defers to a local dependency.
๐ Improved:
- ๐ Fix doc rendering when docblock description is missing (Thanks @GrahamCampbell!)
- More clear error messages when config files are invalid.
- ๐ Fix STDIN input detection when running the cli-server SAPI.
- โ Remove unhelpful deprecation warning in
throw-up
command. - โ Remove
getenv
andputenv
calls in favor of direct$_SERVER
superglobal access.
- ๐จ Print exception traces when running
-
v0.10.3 Changes
April 07, 2020๐ This one's almost too big for a point release!
๐ New:
- ๐ New command line options:
--interactive
and--no-interactive
, to explicitly enable or disable interactive mode.--verbose
,--quiet
and-v
/-vv
/-vvv
for output verbosity. This one kind of worked before, but only sometimes, and only kind of :)- ... and a bunch of aliases, for those familiar with Symfony, Composer and other tools.
- ๐ New and improved command line option handling, making it easier for libraries that wrap PsySH to support the same options as
psysh
does! - ๐ New configuration options:
verbosity
, equivalent to the-v
,-vv
,-vvv
and--silent
command line options.interactiveMode
, equivalent to--interactive
and--no-interactive
command line options.formatterStyles
, for overriding command line colors.
- 0๏ธโฃ Default to non-interactive mode when input is coming from a pipe.
- Cleaner output when using
--raw-output
, orSTDOUT
is redirected. - Exceptions and errors are now written to
STDERR
notSTDOUT
, which makes it easier to split them off from desired output. - ๐
Brand new shiny code formatter. It's more consistent between different commands, the colors match class and method signatures in
ls
and elsewhere, the line numbers are the same style and colors as inhistory
, etc. - Tab completion for interfaces, as well as classes (Thanks @GrahamCampbell!)
- The
ls
command can now list namespaces! This means, for example, thatls --classes Psy
will return all known classes inside the Psy namespace. This works for constants, functions, interfaces and traits as well. - The
show
command now shows files! Tryshow __DIR__. '/vendor/autoload.php'
. This is super handy when combined with the$__file
magic variable set byls
anddoc
:)
๐ Improved:
- ๐ Support redisplay in HOA/Console readline (Thanks @zonuexe!)
- The
show
command now includes doc comments for classes, interfaces, traits, functions and methods. - The
whereami
command now has a--file
option for showing the entire file. - Set the PsySH process title without the
proctitle
extension. - ๐ Fix an issue with pre-packaged phar releases which added a couple of unnecessary functions to the global namespace.
- ๐ Fix a bug parsing single-line docblocks for the
doc
command. - ๐ Fix a small bug parsing code in
sudo
,parse
andthrowup
commands. - A bunch of housekeepking and general cleanup (Thanks @GrahamCampbell!)
- Modernize some code.
- ๐ New command line options:
-
v0.10.2 Changes
March 21, 2020- ๐ฆ Work around bug with code isolation in pre-packaged phars.
(Skipping v0.10.1, which was supposed to fix this but didn't)
-
v0.10.0 Changes
March 15, 2020๐ This might just be our... BIGGEST. RELEASE. EVER.
๐ Note that PsySH v0.10.0 drops support for PHP < 5.5, and non-LTS HHVM.
Uppppppggggggrraaaaddddeeeee.
๐ New:
- ๐ Isolate code in bundled PHAR releases. This means if you download a pre-packaged PsySH binary, it can't collide with code you have installed locally in your project (Thanks @theofidry!)
- ๐ Allow conditional bindings in
.inputrc
and.editrc
(Thanks @tgr!) - โ Add support for verbosity and interactivity flags ... try
-q
,-v
and-n
(Thanks @aksonnic!) - Several improvements for non-interactive UX:
- Support executing stdin, make it play nice with the rest of non-interactive mode.
- Add support for
--raw-output
(-r
) for printing var_export-style return values with non-interactive input. - Suppress startup messages when running with
--raw-output
and--no-interaction
- Only output bracketed paste control characters when interactive.
- Stop paginating non-interactive and raw output.
- โ Add support for namespace and use declarations in reflecting commands (
ls
,doc
, etc).
๐ Improved:
- ๐ Better
instanceof
checks, catching more fatal errors before they fatal (Thanks @baukevdw!) - โ Add a check for empty
$array[]
expressions outside of the left-hand side of an assignment. - โ Add a check for
goto
with an invalid label (Thanks @zonuexe!) - ๐ Support passing unpacked arrays by reference.
- ๐ Improve output of the
ls
command with constants:- Make
category=internal
andcategory=user
equivalent to--user
and--internal
- Make
category
option case-insensitive - Fix "Interal Constants" typo that's been there basically forever
- Add appropriate-case labels for constant categories (e.g. JSON instead of Json)
- Make
- Suppress inherited private methods when listing methods on a class.
- ๐ Prevent shadowing namespace names when they collide with other use statement prefixes.
- ๐ Fix function signature formatting for optional array params.
- Warn if libedit refuses to write history file. Because apparently it does that sometimes.
- Clearer error message when
mkdir
fails while setting up PsySH (Thanks @GrahamCampbell!) - ๐ท Test against PHP 7.3 and 7.4 on CI (Thanks @andreybolonin, @alexeyshockov, and @GrahamCampbell!)
- โ Add support for Symfony 5 (Thanks @Taluu!)
- ๐ Fix Symfony 4.1 table deprecation notices.
- ๐ Fix some PHP 7.4 deprecations in the PsySH codebase (Thanks @ejunker, @Salmatron)
- ๐ Fix some longstanding inconsistencies when running under HHVM.
- ๐ Make commands
--help
option more lenient. - ๐ Use white text instead of black for error messages (Thanks @kristianklok!)
- โ Don't throw error exceptions for warnings or notices. Log them and continue, just like you'd expect.
- Clean up interactive vs non-interactive mode code.
- ๐ More robust detection for pcntl and posix extension support.
- ๐ Improve test coverage.
- Code cleanup (Thanks @GrahamCampbell, @carusogabriel and PHPStan!)
- โก๏ธ Update docblock copyright years.
- ๐ Move PHPUnit and Box to composer bin dependencies.
- ๐ Exclude unnecessary files and folders from release archives (Thanks @ankurk91!)
โ Removed:
- โฌ๏ธ Drop support for PHP 5.4 and non-LTS HHVM. All y'all should join us in the future!
- โ Remove the
ls
commandlist
alias. Now that PsySH supports arbitrary expressions as arguments forls
, having alist
alias is sometimes ambiguous, for example when using the list keyword with a space before its parenthesis. - 0๏ธโฃ The
--version
short flag has changed to-V
, as-v
is now used for verbosity (matching Symfony Console defaults). - โ Remove deprecated
InterfaceEnumerator
andTraitEnumerator
(which have been unused for several releases). - ๐ Put HHVM on life support. Test against the LTS release of HHVM 3. Skip a bunch of known failing tests.
-
v0.9.12 Changes
December 06, 2019- โก๏ธ Update XdgBaseDir dependency to v0.1.*
-
v0.9.11 Changes
November 27, 2019- โ Add support for Symfony 5.0 (Thanks @Taluu!)
๐ฑ (Skipping v0.9.10 because I tagged a broken commit ๐ฌ)
-
v0.9.9 Changes
October 13, 2018- ๐ Improve list assignment support (again)โฆ now you can have function calls and really deep nested array and property access, if that's a thing you're into.
- ๐ Fix a bug where context variables were overwritten if the last line resulted in an error.
- โ Remove 1024 character length limitation for input on systems without readline.
- โฌ๏ธ Bump dependencies on php-console-highlighter and Box.
-
v0.9.8 Changes
September 05, 2018- โ Add support for static calls on traits (Thanks @zonuexe!)
- ๐ Improve test coverage (a bit)
- ๐ Improve list assignment support... do fancy things like
[$a[0], $a[1]] = [1, 2]
!
-
v0.9.7 Changes
August 11, 2018- ๐ Fix regression updating execution scope with variables declared by commands.
- ๐ Fix class constant reflection in PHP 7.2.
- โ Remove dependency on ctype extension.
- Declare explicit dependencies on json and tokenizer extensions.
- ๐ Use fully-qualified names for core function calls.
- Minor code cleanup.