Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dd #12

Merged
merged 2 commits into from
Jan 25, 2025
Merged

fix dd #12

merged 2 commits into from
Jan 25, 2025

Conversation

saeedvaziry
Copy link
Member

@saeedvaziry saeedvaziry commented Jan 20, 2025

closes #8 and #106

@luanfreitasdev
Copy link
Member

Will this stay like this? or maybe we can capture it with VarDumper?

image

@saeedvaziry
Copy link
Member Author

Actually i've been playing with this to capture like you said but cannot get all scenarios work

@saeedvaziry
Copy link
Member Author

The idea is to get it working like this:

echo 1;

dump(2);

dump(3);

dd(4);

to result in

1
2
3
4

@saeedvaziry
Copy link
Member Author

if it was just capturing the dumps it would be easier. but I want to also have the last statement result from psysh.

for example

echo 1;

dump(2);

$a = 3;

should result in

1
2
3

@saeedvaziry
Copy link
Member Author

So far
CleanShot 2025-01-21 at 19 19 50@2x

@saeedvaziry saeedvaziry merged commit 0ed9203 into main Jan 25, 2025
1 check passed
@saeedvaziry saeedvaziry deleted the fix-dd branch January 25, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot redeclare dd()
2 participants