ruflin/Elastica

BC Break from 7.3.1 to 7.3.2

Tsounabe opened this issue · 1 comments

When migrating from 7.3.1 to 7.3.2 a blocking error is thrown while executing any operations (populate, ...):

In Client.php line 407:                                                  
  Call to a member function hasConnection() on null 

Everything works in 7.3.1.

Here is the change from 7.3.1 to 7.3.2: 7.3.1...7.3.2 My assumption is the problem comes from this change here: #2184 @csabavirag

I assume you are using addDocument or addScript? We should likely check that $this->_client is set but I also wonder why it is not set yet in your code? Are you adding the client later on? Can you share a bit more around your code that is causing this?