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

Stringable exactly not match other Stringable #41845

Closed
medeiroz opened this issue Apr 6, 2022 · 3 comments
Closed

Stringable exactly not match other Stringable #41845

medeiroz opened this issue Apr 6, 2022 · 3 comments

Comments

@medeiroz
Copy link
Contributor

medeiroz commented Apr 6, 2022

  • Laravel Version: 9.5.1
  • PHP Version: 8.1
  • Database Driver & Version: N/A

Description:

When need compare two Stringable variables with exactly method. Then false is returned

Steps To Reproduce:

<?php

$first = \Str::of('name');
$second = \Str::of('name');
$first->exactly($second);
//  => false

// true is expected but false is returned

image

@medeiroz
Copy link
Contributor Author

medeiroz commented Apr 6, 2022

link this issue with this PR-41846

@driesvints
Copy link
Member

There is no bug here. You can only pass a string to this method.

@driesvints
Copy link
Member

I see what you mean now but this is a feature request. Let's see how your pr goes.

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

No branches or pull requests

2 participants