Skip to content

Deprecate constructing State with anything other than Agent as 2nd argument #52

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

Closed
wants to merge 5 commits into from
Closed

Conversation

Lctrs
Copy link

@Lctrs Lctrs commented Mar 17, 2017

Close #49.

@xabbuh
Copy link
Contributor

xabbuh commented Mar 17, 2017

Can you also add an entry to the changelog?

@xabbuh
Copy link
Contributor

xabbuh commented Mar 21, 2017

After thinking about this again I think we should do the following:

  • trigger a deprecation in the constructor when an Actor that is no Agent is passed
  • deprecate the getActor() method
  • add the getAgent() method

We can then merge this into the 1.x branch. What do you think?

@Lctrs Lctrs changed the base branch from master to 1.x March 21, 2017 10:56
@Lctrs Lctrs changed the base branch from 1.x to master March 21, 2017 11:01
@Lctrs Lctrs changed the base branch from master to 1.x March 21, 2017 14:57
@Lctrs Lctrs changed the title Typehint $actor property of State to Agent and rename it to $agent Deprecate constructing State with anything other than Agent as 2nd argument Mar 21, 2017
@Lctrs
Copy link
Author

Lctrs commented Mar 21, 2017

@xabbuh Done. Any feedback on this ?

@Lctrs
Copy link
Author

Lctrs commented Mar 24, 2017

@xabbuh Should I also change the version from 1.1.1 to 1.2 as in #55 here ?

@xabbuh
Copy link
Contributor

xabbuh commented Mar 24, 2017

@Lctrs Oh, yes indeed please.

@xabbuh
Copy link
Contributor

xabbuh commented Jun 5, 2017

Thank you @Lctrs.

xabbuh added a commit that referenced this pull request Jun 5, 2017
…nt as 2nd argument (Lctrs)

This PR was squashed before being merged into the 1.x branch (closes #52).

Discussion
----------

Deprecate constructing State with anything other than Agent as 2nd argument

Close #49.

Commits
-------

ea360c6 Deprecate constructing State with anything other than Agent as 2nd argument
@xabbuh xabbuh closed this Jun 5, 2017
@Lctrs Lctrs deleted the fix/issue-49 branch June 6, 2017 08:17
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.

2 participants