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

Construct argument changed to reference #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Construct argument changed to reference #35

wants to merge 1 commit into from

Conversation

cmot-weasel
Copy link

I was getting an Undefined Variable error each time adLDAP was loaded, appears to be as the $options array is only created in the constructor declaration, and isn't being returned beyond the function scope. Not sure if $options should be declared at the top of the class to keep everything tidy (would appreciate clarification) but PHP seems quite happy to muddle through with &$options as is.

I was getting an Undefined Variable error each time adLDAP was loaded, appears to be as the $options array is only created in the constructor declaration, and isn't being returned beyond the function scope. Not sure if $options should be declared at the top of the class to keep everything tidy (would appreciate clarification) but PHP seems quite happy to muddle through with &$options as is.
@samwilson
Copy link
Contributor

Could you give more information about the error you were getting? Because it doesn't seem like this is the best way to solve it. Why would $options be a reference? It isn't being modified in the constructor. What version of PHP are you using?

$options doesn't need to be a class attribute, I reckon, because it's not used anywhere. Unless you mean as a way to get all the default values? But that can be better done by using get*() methods I think.

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